summaryrefslogtreecommitdiff
path: root/lib/handlers.ml
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2025-06-25 18:12:03 +0200
committerMarius Peter <marius.peter@tutanota.com>2025-06-25 18:12:03 +0200
commitca5c67a40dedf8478b6c4c59f6e21828c4578428 (patch)
tree8e159960743376be15b3a368185a4e11c7a91dc0 /lib/handlers.ml
parent08a42b99a2ba69e953dc5ffd7e2b429f2f808874 (diff)
Refactor views.
Diffstat (limited to 'lib/handlers.ml')
-rw-r--r--lib/handlers.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlers.ml b/lib/handlers.ml
index 7a37b20..141d197 100644
--- a/lib/handlers.ml
+++ b/lib/handlers.ml
@@ -29,7 +29,7 @@ module Repo = struct
let file_id req =
let repo = Dream.param req "repo" in
- let id = Dream.param req "repo" in
+ let id = Dream.param req "id" in
let* blob = Resolvers.Blob.of_id repo id in
Views.Repo.file repo blob
@@ -56,7 +56,7 @@ let all_handlers =
get "/summary/" summary;
get "/log/" log;
get "/files/" files_at_head;
- get "/files/:id" file_id;
+ get "/file/:id" file_id;
get "/refs/" refs;
get "/commit/:id" commit;
];
Copyright 2019--2025 Marius PETER