diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-01-19 20:00:18 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-01-19 20:00:18 +0100 |
commit | 8ab5f20f532bc6e9de38ee457b0ef8dd30c80374 (patch) | |
tree | ceecccdb379a9298ca2eef7053b1887885134f8d /bin |
Initial commit for ogit.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dune | 6 | ||||
-rw-r--r-- | bin/main.ml | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/bin/dune b/bin/dune new file mode 100644 index 0000000..e1b7b0d --- /dev/null +++ b/bin/dune @@ -0,0 +1,6 @@ +(executable + (public_name ogit) + (name main) + (libraries + dream + ogit.handlers)) 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; + ] |