1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00
not-gwent-online/site/client/app/routes.js
2015-06-21 21:20:17 +02:00

28 lines
479 B
JavaScript

var routes = {
'/lobby': function() {
alert('lobby');
},
'/deck-builder': function() {
alert('deck-builder');
},
'/highscore': function() {
alert('highscore');
}
};
var options = {
html5history: true,
run_handler_in_init: false,
convert_hash_in_init: false
}
var Router = require('director').Router;
var router = new Router(routes).configure(options).init();
module.exports = {
changeRoute: function(route) {
router.setRoute(route);
}
}