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.
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.