Created
November 1, 2012 20:01
-
-
Save dangerbell/3996081 to your computer and use it in GitHub Desktop.
Example Express router file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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