Skip to content

Instantly share code, notes, and snippets.

@DavidQL
Created October 12, 2014 17:50
Show Gist options
  • Save DavidQL/1bdbc260f71806ac5a20 to your computer and use it in GitHub Desktop.
Save DavidQL/1bdbc260f71806ac5a20 to your computer and use it in GitHub Desktop.
// truncated version of app.js
var express = require('express');
var app = module.exports = express();
var routes = require('./routes/index');
app.use('/', routes(app));
app.use('/tweets', require('./routes/tweets')(app));
app.use('/game', require('./routes/game')(app));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment