Permalink
Browse files

Rewrite design URIs for contents of js and for favicon.ico.

  • Loading branch information...
brentonashworth committed Jan 25, 2012
1 parent c77df43 commit 6a5860ec32b0c784991a8dbfdd714b2b783cb8ae
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/app/clj/one/sample/dev_server.clj
@@ -47,9 +47,8 @@
(defn- rewrite-design-uris [handler]
(fn [{:keys [uri] :as request}]
- (if (or (.startsWith uri "/design/css")
- (.startsWith uri "/design/javascripts")
- (.startsWith uri "/design/images"))
+ (if (some true? (map #(.startsWith uri (str "/design/" %))
+ ["css" "javascripts" "images" "js" "favicon.ico"]))
(handler (assoc request :uri (.substring uri 7)))
(handler request))))

0 comments on commit 6a5860e

Please sign in to comment.