Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
restful routing alternative for Clojure

This branch is even with ninjudd:develop

snapshot

latest commit 0befdebcb6
@ninjudd ninjudd authored

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 'flatland.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!
Something went wrong with that request. Please try again.