Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Created February 7, 2010 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tim-smart/297275 to your computer and use it in GitHub Desktop.
Save tim-smart/297275 to your computer and use it in GitHub Desktop.
Get(/^\/myroute/, function(request) {
...
});
Post(/^\/myroute/, function(request) {
...
});
Head(/^\/myroute/, function(request) {
...
});
Stream(/^\/myroute/, function(request) {
...
});
Route("GET", /^\/myroute/, function(request) {
...
});
Route("POST", /^\/myroute/, function(request) {
...
});
Route("HEAD", /^\/myroute/, function(request) {
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment