var Router = require('director').Router; var router = new Router(); module.exports = { init: function(app) { router.on('/lobby', function() { app.view = 'lobby'; app.section = 'inner'; }); this.configure(); router.init(); }, configure: function() { router.configure({ html5history: true }) } }