summaryrefslogtreecommitdiff
path: root/bin/main.ml
diff options
context:
space:
mode:
Diffstat (limited to 'bin/main.ml')
-rw-r--r--bin/main.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/main.ml b/bin/main.ml
index c30e4fc..74712e1 100644
--- a/bin/main.ml
+++ b/bin/main.ml
@@ -6,5 +6,8 @@ let () =
Dream.get "/:repo_name" (fun req ->
let repo_name = Dream.param req "repo_name" in
Ogit.Handlers.repo_root repo_name);
+ Dream.get "/:repo_name/tree" (fun req ->
+ let repo_name = Dream.param req "repo_name" in
+ Ogit.Handlers.repo_tree repo_name);
Dream.get "/static/**" (Dream.static "./lib/static");
]
Copyright 2019--2025 Marius PETER