summaryrefslogtreecommitdiff
path: root/lib/handlers.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlers.ml')
-rw-r--r--lib/handlers.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/handlers.ml b/lib/handlers.ml
index 1f6d920..7c80bcb 100644
--- a/lib/handlers.ml
+++ b/lib/handlers.ml
@@ -1,4 +1,6 @@
-let ogit_root _ = Dream_html.respond @@ Views.Ogit_root.render ()
+open Lwt.Infix
+
+let ogit_root _ = Views.Ogit_root.render () >>= Dream_html.respond
let repo_root repo_name =
- Dream_html.respond @@ Lwt_main.run @@ Views.Repo_root.render repo_name
+ Views.Repo_root.render repo_name >>= Dream_html.respond
Copyright 2019--2025 Marius PETER