summaryrefslogtreecommitdiff
path: root/init.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-07-23 23:19:46 +0600
committerunwox <me@unwox.com>2024-07-23 23:24:14 +0600
commitcba8ff3896a59598e9f0aa946fd547002ac23aba (patch)
tree33fa5edd8f9640bb00e28f75e6bb73910e80c529 /init.fnl
parent701d73e4a47964ea40100ab2f329ef1dcc0a6f83 (diff)
use luna module instead of returning table for lua->go interaction
Diffstat (limited to 'init.fnl')
-rw-r--r--init.fnl2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.fnl b/init.fnl
index bce021a..0f89ad3 100644
--- a/init.fnl
+++ b/init.fnl
@@ -14,4 +14,4 @@
(let [headers { :content-type "text/html" }]
(values 200 headers (html.render template))))
-{ :routes { :/ root-handler } }
+(luna.router.route "/" root-handler)