boilerplate for formatting and basic routes

This commit is contained in:
2026-05-27 22:08:24 +02:00
parent 14eb7fab13
commit 34ebb6f876
5 changed files with 52 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
(executable
(public_name chess-scribe-api)
(name main)
(libraries chess_scribe_api))
(libraries chess_scribe_api dream))
+8 -1
View File
@@ -1 +1,8 @@
let () = print_endline "Hello, World!"
let () =
Dream.run @@ Dream.logger
@@ Dream.router
[
Dream.get "/" (fun _ -> Dream.html "API Docs");
Dream.get "/health" (fun _ -> Dream.html "Health Check");
Dream.get "/pdf" (fun _ -> Dream.html "Generate PDF");
]