about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThel Seraphim <thel.seraphim@gmail.com>2015-03-13 21:17:01 -0700
committerThel Seraphim <thel.seraphim@gmail.com>2015-03-13 21:17:01 -0700
commita57cb49c2b961e1594d9a41668d7d9a14595315a (patch)
treeffa1fcdc6762b2c9afa382a23c44ba067e42aff5
parentbb925b1e7411fa9069b4b0c426e14812c629399f (diff)
re-order routes to prevent 404 on loading css
-rw-r--r--src/pronouns/web.clj11
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")))))