summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/dune4
-rw-r--r--bin/main.ml2
-rw-r--r--lib/main.ml3
3 files changed, 7 insertions, 2 deletions
diff --git a/bin/dune b/bin/dune
index 864d145..df94ee2 100644
--- a/bin/dune
+++ b/bin/dune
@@ -1,4 +1,6 @@
+;;; -*- mode: lisp; -*-
+
(executable
(public_name ogit)
(name main)
- (libraries ogit dream))
+ (libraries ogit))
diff --git a/bin/main.ml b/bin/main.ml
index 5fcd6cf..2b3d552 100644
--- a/bin/main.ml
+++ b/bin/main.ml
@@ -1 +1 @@
-let () = Dream.run @@ Dream.logger @@ Dream.router Ogit.Handlers.all_handlers
+let () = Ogit.Main.run ()
diff --git a/lib/main.ml b/lib/main.ml
new file mode 100644
index 0000000..5b19c42
--- /dev/null
+++ b/lib/main.ml
@@ -0,0 +1,3 @@
+(* -*- mode: tuareg; -*- *)
+
+let run () = Dream.run @@ Dream.logger @@ Dream.router Handlers.all_handlers
Copyright 2019--2025 Marius PETER