2020-12-02 13:33:15 +00:00
|
|
|
open Opium
|
|
|
|
|
2021-01-08 12:47:17 +00:00
|
|
|
let t = Result.get_ok (Builder_web.init "builder.sqlite3")
|
2020-12-02 13:33:15 +00:00
|
|
|
|
|
|
|
let app =
|
|
|
|
App.empty
|
|
|
|
|> App.cmd_name "Builder Web"
|
|
|
|
|> Builder_web.add_routes t
|
|
|
|
|
|
|
|
let () =
|
2021-01-20 21:50:35 +00:00
|
|
|
Mirage_crypto_rng_unix.initialize ();
|
2020-12-02 13:33:15 +00:00
|
|
|
App.run_command app
|