Skip to content

Instantly share code, notes, and snippets.

@matzew
Forked from shannon/foo.js
Last active August 29, 2015 14:24
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 matzew/718f5130237afeb9f72b to your computer and use it in GitHub Desktop.
Save matzew/718f5130237afeb9f72b to your computer and use it in GitHub Desktop.
var express = require('express');
var router = express.Router();
// my few includes
require('./foo_1')(router);
require('./foo_2')(router);
module.exports = router;
module.exports = function(router){
router.get('/one', someFunction);
router.get('/two', someOtherFunction);
router.get('/three', someFunctionHere);
}
module.exports = function(router){
router.get('/four', someFunctionAndHEre);
router.get('/five', someFunctionYesHereToo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment