SHARE
TWEET

Untitled

a guest Dec 11th, 2012 8 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (ns test.views.welcome
  2.   (:require [test.views.common :as common]
  3.             [noir.response :as r]
  4.             [monger.collection :as mc]
  5.             [monger.json]
  6.             [cheshire.core :refer :all])
  7.   (:use [noir.core :only [defpage]]))
  8.  
  9. (defpage "/" []
  10.          (common/layout
  11.            [:h1 "Nothing to see here!"]))
  12.  
  13. (defpage [:get "/sets"] []
  14.         (generate-string (mc/find-maps "sets")))
  15.  
  16. (defpage [:get "/json"] []
  17.         (r/json {:hello "world"}))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top