Skip to content

Instantly share code, notes, and snippets.

@dangerbell
Created November 1, 2012 20:01
Show Gist options
  • Save dangerbell/3996081 to your computer and use it in GitHub Desktop.
Save dangerbell/3996081 to your computer and use it in GitHub Desktop.
Example Express router file
Example = require './controllers/example'
router = (app) ->
# Examples
app.get '/example/:id', Example.show
app.delete '/example/:id', Example.del
app.get '/example', Example.index
app.post '/example', Example.create
module.exports = router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment