From c0aa85cf9e4d620c582011c2b36397e6af5a201b Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 20 Jul 2025 16:30:42 +0200 Subject: Handler naming is now orthogonal. --- lib/handlers.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3