re-order routes to prevent 404 on loading css

This commit is contained in:
Thel Seraphim 2015-03-13 21:17:01 -07:00
parent bb925b1e74
commit a57cb49c2b

View File

@ -23,16 +23,17 @@
:headers {"Content-Type" "text/plain"} :headers {"Content-Type" "text/plain"}
:body (pages/front)}) :body (pages/front)})
(GET "/*" {params :params}
{:status 200
:headers {"Content-Type" "text/html"}
:body (pages/pronouns (:* params) pronouns-table)})
(GET "/pronouns.css" {params :params} (GET "/pronouns.css" {params :params}
{:status 200 {:status 200
:headers {"Content-Type" "text/css"} :headers {"Content-Type" "text/css"}
:body (slurp (io/resource "pronouns.css"))}) :body (slurp (io/resource "pronouns.css"))})
(GET "/*" {params :params}
{:status 200
:headers {"Content-Type" "text/html"}
:body (pages/pronouns (:* params) pronouns-table)})
(ANY "*" [] (ANY "*" []
(route/not-found (slurp (io/resource "404.html"))))) (route/not-found (slurp (io/resource "404.html")))))