Created
May 11, 2014 20:19
-
-
Save navarroaxel/f724bc59fa95e57032b4 to your computer and use it in GitHub Desktop.
Easy router in node.js
This file contains hidden or 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
| var router = require('express').Router(); | |
| /* GET users listing. */ | |
| router.get('/', function(req, res) { | |
| res.send('respond with a resource'); | |
| }); | |
| module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment