diff options
Diffstat (limited to 'examples/nodejs-mongodb-mongoose-restify/js/router.js')
-rw-r--r-- | examples/nodejs-mongodb-mongoose-restify/js/router.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/examples/nodejs-mongodb-mongoose-restify/js/router.js b/examples/nodejs-mongodb-mongoose-restify/js/router.js deleted file mode 100644 index 2f65042..0000000 --- a/examples/nodejs-mongodb-mongoose-restify/js/router.js +++ /dev/null @@ -1,29 +0,0 @@ -// Filename: router.js -define([ - 'jquery', - 'underscore', - 'backbone', - 'vm' -], function ($, _, Backbone, Vm) { - var AppRouter = Backbone.Router.extend({ - routes: { - '*actions': 'defaultAction' // All urls will trigger this route - } - }); - - var initialize = function(options){ - var appView = options.appView; - var router = new AppRouter(options); - - router.on('route:defaultAction', function (actions) { - require(['views/dashboard/page'], function (DashboardPage) { - var dashboardPage = Vm.create(appView, 'DashboardPage', DashboardPage); - dashboardPage.render(); - }); - }); - - }; - return { - initialize: initialize - }; -}); |