Commit 7b4d8837 authored by Dario Pinto's avatar Dario Pinto
Browse files

add slash/less url

parent 5160e8dc
......@@ -153,6 +153,12 @@ let () =
[ Dream.get "/assets/**" (Dream.static ~loader:asset_loader "")
; Dream.get "/blog/assets/**" (Dream.static ~loader:blog_asset_loader "")
; Dream.get "/blog/feed" (Dream.static ~loader:feed_loader "")
; Dream.get "" (fun _request ->
match page "index" with
| None -> Dream.empty `Not_Found
| Some content ->
let title = title content in
Dream.html (render_unsafe ~title ~content ()) )
; Dream.get "/" (fun _request ->
match page "index" with
| None -> Dream.empty `Not_Found
......
......@@ -42,7 +42,10 @@ let old_to_new =
; ("/fr/preinscription-aux-formations-ocamlpro/", "/course_register" )
]
(* STATIC PAGES *)
@ [ ("/", "/index")
@ [ ("", "/index")
; ("/", "/index")
; ("/ocaml.pro", "/index")
; ("/ocaml.pro/", "/index")
; ("/team", "/team")
; ("/team/", "/team")
; ("/training-ocamlpro", "/")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment