restful routing alternative for Clojure
Clojure
Switch branches/tags
Nothing to show
Pull request Compare This branch is 119 commits behind ninjudd:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/wakeful
test
.gitignore
LICENSE
README.md
project.clj

README.md

Wakeful

Wakeful is a Restful routing alternative for Clojure. It makes it really easy to connect your web api to namespaces in your project.

Usage

(use 'wakeful.core)

(def handler (wakeful "awesome.api"))

Now http calls dispatch to methods calls in namespaces under awesome.api:

GET  /photo-123/thumbnail  -> awesome.api.photo/thumbnail
GET  /photo-123/tags       -> awesome.api.photo/tags
POST /photo-123/tag/user-1 -> awesome.api.photo/tag!