Skip to content

Commit

Permalink
route changes
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza-husain committed Sep 7, 2012
1 parent 8d9c321 commit 392084e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mfaiz/routes.clj
Expand Up @@ -2,6 +2,7 @@
(:use [net.cgrand.moustache :only [app]]
[net.cgrand.enlive-html :only [deftemplate content html-content defsnippet]]
[ring.middleware.file :only [wrap-file]]
[ring.middleware.stacktrace :only [wrap-stacktrace]]
[ring.util.response :only [response]]))

(defsnippet reg "mfaiz/templates/reg.html" [:#reg-form] [])
Expand All @@ -13,8 +14,9 @@
[:#main] (content (reg)))

(def my-app (app
wrap-stacktrace
(wrap-file "resources/public/")
["my"] (-> (reg) response constantly)
["my"] (-> (my) response constantly)
[page] (-> (chrome page) response constantly)
[&] "Nothing was found"))

0 comments on commit 392084e

Please sign in to comment.