Guest User

Untitled

a guest
Mar 11th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defroutes app-routes
  2.   ;(GET "/" [] (generate-string {:csrf-token *anti-forgery-token*}))
  3.   (GET  "/" [] "<form method='post' action='/'> What's your name? <input type='text' name='name' /><input type='submit' /></form>"))
  4.   (POST "/send" [name] "ok"))
  5.  
  6. (def app
  7.   (-> app-routes
  8.    (wrap-defaults site-defaults)
  9.    (wrap-session {:cookie-attrs {:max-age 3600}
  10.                   :store (cookie-store {:key "ahY9poQuaghahc7I"})})))
Advertisement
Add Comment
Please, Sign In to add comment