init
This commit is contained in:
commit
e872f52e97
8 changed files with 116 additions and 0 deletions
18
src/mte.ml
Normal file
18
src/mte.ml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
let terms req _server _ =
|
||||
Vif.Response.with_file ~compression:`DEFLATE req
|
||||
Fpath.(v "assets" / "terms.html")
|
||||
|
||||
let privacy req _server _ =
|
||||
Vif.Response.with_file ~compression:`DEFLATE req
|
||||
Fpath.(v "assets" / "privacy.html")
|
||||
|
||||
let routes =
|
||||
let open Vif.Uri in
|
||||
let open Vif.Route in
|
||||
(*let open Vif.Type in*)
|
||||
[
|
||||
get (rel / "terms" /?? nil) --> terms
|
||||
; get (rel / "privacy" /?? nil) --> privacy
|
||||
]
|
||||
|
||||
let () = Miou_unix.run @@ fun () -> Vif.run routes ()
|
||||
Loading…
Add table
Add a link
Reference in a new issue