summaryrefslogtreecommitdiff
path: root/bin/main.ml
diff options
context:
space:
mode:
Diffstat (limited to 'bin/main.ml')
-rw-r--r--bin/main.ml10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/main.ml b/bin/main.ml
new file mode 100644
index 0000000..8c49c91
--- /dev/null
+++ b/bin/main.ml
@@ -0,0 +1,10 @@
+(* ogit: A lightweight, mobile-friendly alternative to cgit *)
+
+let () =
+ Dream.run
+ @@ Dream.logger
+ @@ Dream.router [
+ Dream.get "/" Handlers.root;
+ Dream.get "/:repo_name/" Handlers.repo_root;
+ Dream.get "/:repo_name/tree" Handlers.repo_tree;
+ ]
Copyright 2019--2025 Marius PETER