summaryrefslogtreecommitdiff
path: root/bin/main.ml
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2025-02-01 19:24:32 +0100
committerMarius Peter <marius.peter@tutanota.com>2025-02-01 19:24:32 +0100
commit6e8e49ba49beeeb63e1e027fc23e8883a1185109 (patch)
tree6a816fc986c6650959087f88e7fd63997efe003c /bin/main.ml
parent19875b1503f6e890975e50bdd88853b6e4d0caf4 (diff)
Reorganized everything.
Thank you DeepSeek!
Diffstat (limited to 'bin/main.ml')
-rw-r--r--bin/main.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/main.ml b/bin/main.ml
index 7a4341f..895bfb8 100644
--- a/bin/main.ml
+++ b/bin/main.ml
@@ -2,7 +2,8 @@ let () =
Dream.run @@ Dream.logger
@@ Dream.router
[
- Dream.get "/" @@ Handlers.ogit_root;
- Dream.get "/:repo_name/" @@ Handlers.repo_root repo;
- (* Dream.get "/:repo_name/tree" Handlers.repo_tree; *)
+ Dream.get "/" (fun _ -> Ogit.Handlers.ogit_root ());
+ Dream.get "/:repo_name" (fun request ->
+ Ogit.Handlers.repo_root @@ Dream.param request "repo_name");
+ Dream.get "/static/**" (Dream.static "./lib/static");
]
Copyright 2019--2025 Marius PETER