diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-03-02 19:23:19 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-03-02 19:23:19 +0100 |
commit | 55993c4d0857aec8a372aee989aaeef61ea37b3c (patch) | |
tree | a6da37b5fda45d80f84251633426dee51db87575 /bin | |
parent | c67581470cbdf2a1c8efabce78afffb2e3a2a2c6 (diff) |
Great work today! 🔥
Diffstat (limited to 'bin')
-rw-r--r-- | bin/main.ml | 3 |
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"); ] |