Skip to content

Instantly share code, notes, and snippets.

@StoneCypher
Created December 1, 2014 10:40
Show Gist options
  • Select an option

  • Save StoneCypher/10ad98ae156e43ae4628 to your computer and use it in GitHub Desktop.

Select an option

Save StoneCypher/10ad98ae156e43ae4628 to your computer and use it in GitHub Desktop.
handler1.js:
------------
function HandleOne(req, res) { ... }
module.exports = HandleOne;
// and there's several more files like this
main:
var handler1 = require("handler1"),
handler2 = require("handler2");
app.get('/one', handler1);
app.get('/two', handler2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment