diff options
author | polwex <polwex@sortug.com> | 2025-06-27 16:34:09 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-06-27 16:34:09 +0700 |
commit | 645e815ebe11dbb86781c3eb645d3d67cd62cf7c (patch) | |
tree | 347b03391a5245de8a43198c9646719c2e892373 /lib/router.ml | |
parent | 8be9a806a93b02eada372f3993c34bc6b2f26fea (diff) |
nice nice. lsp still doesnt work tho
Diffstat (limited to 'lib/router.ml')
-rw-r--r-- | lib/router.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/router.ml b/lib/router.ml index 4e05da7..8649e5f 100644 --- a/lib/router.ml +++ b/lib/router.ml @@ -56,7 +56,8 @@ let routes = (* bs5 routes *) (* root *) - ; `GET, nil @--> Html.render @@ Pages.BlogIndex.make () + (* ; `GET, nil @--> Html.render @@ Pages.BlogIndex.make () *) + ; `GET, nil @--> Html.render_conn @@ Pages.BlogIndex.make ; `GET, (s "l" /? nil) @--> Html.get_root ] ;; @@ -64,7 +65,6 @@ let routes = (* Transform the routes map by applying 'one_of' to each list of routes *) (* 'one_of' combines multiple routes into a single router that tries each in order *) let router = R.map one_of routes -let lol = Html.render @@ Pages.BlogIndex.make () (* Function to match an incoming request against our routes *) let match_route verb path = |