WIP server
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
let html_page_route path =
|
||||
let ic = open_in ("html" ^ path ^ "index.html") in
|
||||
let lines = In_channel.input_all ic in
|
||||
In_channel.close ic;
|
||||
Dream.get path (fun _ -> Dream.html lines)
|
||||
Reference in New Issue
Block a user