library=
[dependencies]
-git://onyxlang.io/repo/http-server=0.0.17
+git://onyxlang.io/repo/http-server=0.0.18
git://onyxlang.io/repo/postgres-orm=0.0.18
git://onyxlang.io/repo/otmp=0.0.2
test = req,
});
+
+ res->status(200);
+}
+
+@http.route.{.GET, "/slow"}
+(req: ^Req, res: ^Res) {
+ res->html("<h1>Hmmm...</h1>");
res->status(200);
}
app := http.application();
- files := http.static("/static/", "./www/static/");
- app->pipe(^files);
+ // files := http.static("/static/", "./www/static/");
+ // app->pipe(^files);
#if #defined(runtime.vars.Debug) {
app->pipe((req, res) => {