Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 6a5860ec32b0c784991a8dbfdd714b2b783cb8ae 1 parent c77df43
@brentonashworth brentonashworth authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/app/clj/one/sample/dev_server.clj
View
5 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))))
Please sign in to comment.
Something went wrong with that request. Please try again.