Skip to content

Instantly share code, notes, and snippets.

@ritch
Created May 19, 2011 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ritch/981203 to your computer and use it in GitHub Desktop.
Save ritch/981203 to your computer and use it in GitHub Desktop.
hive
.at('/tweets')
//http://hello-world.dev/tweets/?limit=24
.find('/', hive.queries.tweets)
//http://hello-world.dev/tweets/:id
.find('/detail/:id', hive.models.tweet)
//http://hello-world.dev/tweets/new
.post('/new', hive.models.tweet)
//http://hello-world.dev/tweets/delete/:id
.delete('/delete/:id', hive.models.tweet);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment