Guest User

Untitled

a guest
May 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. (defroutes public-routes
  2. (GET "/" [] (main-page)))
  3.  
  4. (defroutes admin-routes
  5. (GET "/admin/new" [] (render-page "New Post" new-form))
  6. (POST "/admin/post" [title body] (create-post title body)))
Add Comment
Please, Sign In to add comment