re-order routes to prevent 404 on loading css
This commit is contained in:
parent
bb925b1e74
commit
a57cb49c2b
@ -23,16 +23,17 @@
|
||||
:headers {"Content-Type" "text/plain"}
|
||||
:body (pages/front)})
|
||||
|
||||
(GET "/*" {params :params}
|
||||
{:status 200
|
||||
:headers {"Content-Type" "text/html"}
|
||||
:body (pages/pronouns (:* params) pronouns-table)})
|
||||
|
||||
(GET "/pronouns.css" {params :params}
|
||||
{:status 200
|
||||
:headers {"Content-Type" "text/css"}
|
||||
:body (slurp (io/resource "pronouns.css"))})
|
||||
|
||||
|
||||
(GET "/*" {params :params}
|
||||
{:status 200
|
||||
:headers {"Content-Type" "text/html"}
|
||||
:body (pages/pronouns (:* params) pronouns-table)})
|
||||
|
||||
(ANY "*" []
|
||||
(route/not-found (slurp (io/resource "404.html")))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user