mirror of
https://github.com/TheRealOwenRees/chess-scribe-api.git
synced 2026-07-23 01:06:56 +00:00
boilerplate for formatting and basic routes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
(executable
|
||||
(public_name chess-scribe-api)
|
||||
(name main)
|
||||
(libraries chess_scribe_api))
|
||||
(libraries chess_scribe_api dream))
|
||||
|
||||
+8
-1
@@ -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");
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user