Skip to content

Instantly share code, notes, and snippets.

@shlomiv
Last active December 20, 2015 08:09
Show Gist options
  • Save shlomiv/6098908 to your computer and use it in GitHub Desktop.
Save shlomiv/6098908 to your computer and use it in GitHub Desktop.
(defroutes app-routes
(GET "/" [] )
(GET ["/shlomi/:id/:name" :id #"[0-9]+" :name #"[a-zA-Z]+"] [id name] (str id name))
(GET "/test" [] (html5 [:head
[:title "YO"]
[:body
[:h1 "Yo!"]
(text-field "test" "whats in here")]]))
(route/resources "/")
(route/not-found "Not Found"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment