1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-10-31 10:36:53 +00:00
not-gwent-online/site/client/app/routes.js

24 lines
391 B
JavaScript
Raw Normal View History

2015-06-21 11:09:29 +00:00
var Router = require('director').Router;
var router = new Router();
module.exports = {
init: function(app) {
router.on('/lobby', function() {
app.view = 'lobby';
app.section = 'inner';
});
2015-06-21 15:14:53 +00:00
router.on('/test', function() {
})
2015-06-21 11:09:29 +00:00
this.configure();
2015-06-21 14:34:27 +00:00
router.init();
2015-06-21 11:09:29 +00:00
},
configure: function() {
router.configure({
2015-06-21 14:34:27 +00:00
html5history: true
2015-06-21 11:09:29 +00:00
})
}
}