Last active
December 20, 2015 08:09
-
-
Save shlomiv/6098908 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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