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