Skip to content

Instantly share code, notes, and snippets.

@vijaykiran
Created August 4, 2011 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijaykiran/1126158 to your computer and use it in GitHub Desktop.
Save vijaykiran/1126158 to your computer and use it in GitHub Desktop.
(defn index
"Get list of gamers"
([] (println "GET for the list of Gamers"))
([id] (println "GET for the gamer with " id)))
(defroutes routes
(GET "/gamers" [] (index))
(GET "/gamers/:id" [id] (index id)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment