Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (ns test.views.welcome
- (:require [test.views.common :as common]
- [noir.response :as r]
- [monger.collection :as mc]
- [monger.json]
- [cheshire.core :refer :all])
- (:use [noir.core :only [defpage]]))
- (defpage "/" []
- (common/layout
- [:h1 "Nothing to see here!"]))
- (defpage [:get "/sets"] []
- (generate-string (mc/find-maps "sets")))
- (defpage [:get "/json"] []
- (r/json {:hello "world"}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement