summaryrefslogtreecommitdiff
path: root/lib/handlers.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlers.ml')
-rw-r--r--lib/handlers.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlers.ml b/lib/handlers.ml
index d50eca8..171cef2 100644
--- a/lib/handlers.ml
+++ b/lib/handlers.ml
@@ -6,7 +6,7 @@ let repo_root req =
let repo_tree req =
let repo_name = Dream.param req "repo_name" in
- let dir_path = Dream.query req "path" |> Option.value ~default:"" in
+ let dir_path = Dream.target req in
Views.Repo_tree.render repo_name dir_path |> Dream_html.respond
let repo_blob req =
Copyright 2019--2025 Marius PETER