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"}
|
:headers {"Content-Type" "text/plain"}
|
||||||
:body (pages/front)})
|
:body (pages/front)})
|
||||||
|
|
||||||
|
(GET "/pronouns.css" {params :params}
|
||||||
|
{:status 200
|
||||||
|
:headers {"Content-Type" "text/css"}
|
||||||
|
:body (slurp (io/resource "pronouns.css"))})
|
||||||
|
|
||||||
|
|
||||||
(GET "/*" {params :params}
|
(GET "/*" {params :params}
|
||||||
{:status 200
|
{:status 200
|
||||||
:headers {"Content-Type" "text/html"}
|
:headers {"Content-Type" "text/html"}
|
||||||
:body (pages/pronouns (:* params) pronouns-table)})
|
:body (pages/pronouns (:* params) pronouns-table)})
|
||||||
|
|
||||||
(GET "/pronouns.css" {params :params}
|
|
||||||
{:status 200
|
|
||||||
:headers {"Content-Type" "text/css"}
|
|
||||||
:body (slurp (io/resource "pronouns.css"))})
|
|
||||||
|
|
||||||
(ANY "*" []
|
(ANY "*" []
|
||||||
(route/not-found (slurp (io/resource "404.html")))))
|
(route/not-found (slurp (io/resource "404.html")))))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user