diff options
| author | Marius Peter <marius.peter@tutanota.com> | 2025-07-20 16:30:42 +0200 | 
|---|---|---|
| committer | Marius Peter <marius.peter@tutanota.com> | 2025-07-20 16:30:42 +0200 | 
| commit | c0aa85cf9e4d620c582011c2b36397e6af5a201b (patch) | |
| tree | 66761e6de0e14c50b231463345803af03a2de37c /lib | |
| parent | 85872d1f2c6c28b492edc2861a22b49faf266dcd (diff) | |
Handler naming is now orthogonal.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/handlers.ml | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/handlers.ml b/lib/handlers.ml index e7a76ce..add6378 100644 --- a/lib/handlers.ml +++ b/lib/handlers.ml @@ -21,7 +21,7 @@ module Repo = struct      let* commits = Resolvers.Commit.recent repo 100 in      Views.Repo.commits repo commits -  let commit req = +  let commit_id req =      let repo = Dream.param req "repo" in      let id = Dream.param req "id" in      let* commit = Resolvers.Commit.of_id repo id in @@ -70,7 +70,7 @@ let all_handlers =            get "/" summary;            get "/summary/" summary;            get "/commits/" commits; -          get "/commit/:id" commit; +          get "/commit/:id" commit_id;            get "/files/" files_at_head;            get "/file/:id" file_id;            get "/branches/" branches; | 
