O'Reilly logo
  • Jeff Fox thinks this is interesting:

(defroutes app* (GET "/" request "Welcome!") (PUT "/:id" [id url] (retain url id)) (POST "/" [url] (retain url)) (GET "/:id" [id] (redirect id)) (GET "/list/" [] (interpose "\n" (keys @mappings))) (compojure.route/not-found "Sorry, there's nothing here."))

From

Cover of Clojure Programming

Note

seems that /list/ s/b /list without the trailing slash and be about /:id