jaceklaskowski/librarian-clojure — pull request #4 by konrad-garus (2012-02-24 09:47:18+00:00)
Title: Fixed routes for CRUD. Added tests for compojure routes

Added unit tests around compojure routes.

Apparently with Compojure /books/delete/15 is preferred over /books/delete?id=15. It also makes forms and tests easier, so I decided to go for this URL path scheme.

Generally, actions like add vs. update are now easily distinguished on URL mapping level and don't need conditions in our functions in books.clj.