[OCaml] Mobile-friendly clone of cgit.
Handler naming is now orthogonal.
lib/handlers.ml
@@ -21,7 +21,7 @@
21
21
let* commits = Resolvers.Commit.recent repo 100 in
22
22
Views.Repo.commits repo commits
23
23
24
Removed:
let commit req =
24
Added:
let commit_id req =
25
25
let repo = Dream.param req "repo" in
26
26
let id = Dream.param req "id" in
27
27
let* commit = Resolvers.Commit.of_id repo id in
@@ -70,7 +70,7 @@
70
70
get "/" summary;
71
71
get "/summary/" summary;
72
72
get "/commits/" commits;
73
Removed:
get "/commit/:id" commit;
73
Added:
get "/commit/:id" commit_id;
74
74
get "/files/" files_at_head;
75
75
get "/file/:id" file_id;
76
76
get "/branches/" branches;