Skip to content

Instantly share code, notes, and snippets.

@devn
Created October 11, 2011 18:31
Show Gist options
  • Select an option

  • Save devn/1278941 to your computer and use it in GitHub Desktop.

Select an option

Save devn/1278941 to your computer and use it in GitHub Desktop.
static-file-routes.clj
(def routes
(-> (app
["examples" text] {:get [(fn [req] (walton-html text))]}
[#".*\.js"] {:get [(file-response "resources/public")]}
[#".*\.css"] {:get [(file-response "resources/public")]})
(wrap-file "resources/public")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment