summaryrefslogtreecommitdiff
path: root/lib/handlers/handlers.ml
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2025-02-01 19:24:32 +0100
committerMarius Peter <marius.peter@tutanota.com>2025-02-01 19:24:32 +0100
commit6e8e49ba49beeeb63e1e027fc23e8883a1185109 (patch)
tree6a816fc986c6650959087f88e7fd63997efe003c /lib/handlers/handlers.ml
parent19875b1503f6e890975e50bdd88853b6e4d0caf4 (diff)
Reorganized everything.
Thank you DeepSeek!
Diffstat (limited to 'lib/handlers/handlers.ml')
-rw-r--r--lib/handlers/handlers.ml13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/handlers/handlers.ml b/lib/handlers/handlers.ml
deleted file mode 100644
index 564d563..0000000
--- a/lib/handlers/handlers.ml
+++ /dev/null
@@ -1,13 +0,0 @@
-let ogit_root _ = Dream_html.respond @@ Views.Ogit_root.render ()
-let repo_root repo = Dream_html.respond @@ Views.Repo.render repo
-
-(* let repo_tree request = *)
-(* let repo_name = Dream.param request "repo_name" in *)
-(* let repo_path = Filename.concat (Unix.getenv "HOME") ("git/" ^ repo_name) in *)
-(* let content = *)
-(* if Sys.file_exists repo_path && Sys.is_directory repo_path then *)
-(* let files = Helpers.File_helpers.list_files repo_path in *)
-(* "<h1>Browsing repository: " ^ repo_name ^ "</h1><ul>" ^ files ^ "</ul>" *)
-(* else "<h1>Repository not found: " ^ repo_name ^ "</h1>" *)
-(* in *)
-(* Dream.html (page_layout ~content) *)
Copyright 2019--2025 Marius PETER