mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
21 lines
347 B
JavaScript
21 lines
347 B
JavaScript
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
|
|
})
|
|
}
|
|
} |