diff options
-rw-r--r-- | src/pronouns/web.clj | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj index 2189038..646e142 100644 --- a/src/pronouns/web.clj +++ b/src/pronouns/web.clj @@ -23,16 +23,17 @@ :headers {"Content-Type" "text/plain"} :body (pages/front)}) + (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)}) - (GET "/pronouns.css" {params :params} - {:status 200 - :headers {"Content-Type" "text/css"} - :body (slurp (io/resource "pronouns.css"))}) - (ANY "*" [] (route/not-found (slurp (io/resource "404.html"))))) |