# app.js
var app = express();
app.use('/api', require('./api'));


# api.js
var api = module.exports = express();

api.get('/signup', function(req, res, next) {
  // ...
});
api.post('/signup', function(req, res, next) {
  // ...
});
api.get('/login', function(req, res, next) {
  // ...
});