tiny changes but bugfixes
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 4 Nov 2022 03:51:15 +0000 (22:51 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 4 Nov 2022 03:51:15 +0000 (22:51 -0500)
build.onyx
onyx-pkg.ini
src/app.onyx

index 75739ebe5fce38870e10b7f30aa5753c282e5940..e56f8a26a0539659a0841992fc178367f83a64d6 100644 (file)
@@ -5,5 +5,4 @@
 #library_path "./bin"
 
 #load_all "./src"
-// #load "./src/html-templates/module"
 
index b34c390795277627f6c94daf47f99ee887413d27..8a3d1f0d0319cdaf0847ff5ad1f9a666852a4fa1 100644 (file)
@@ -17,7 +17,7 @@ build_cmd=
 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
 
index 461cfe203dd4a538cb880fe6ce9338b0dfa88b90..e430a71086648f291f3fe7b7eab9e59497b24d1f 100644 (file)
@@ -29,6 +29,13 @@ reg: otmp.TemplateRegistry;
 
         test = req,
     });
+
+    res->status(200);
+}
+
+@http.route.{.GET, "/slow"}
+(req: ^Req, res: ^Res) {
+    res->html("<h1>Hmmm...</h1>");
     res->status(200);
 }
 
@@ -38,8 +45,8 @@ main :: () {
 
     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) => {