sonarr-repo-only/NzbDrone.Backbone/app.js

17 lines
414 B
JavaScript
Raw Normal View History

2013-01-18 22:05:38 +00:00
NzbDrone = new Backbone.Marionette.Application();
NzbDrone.MyRouter = Backbone.Marionette.AppRouter.extend({
// "someMethod" must exist at controller.someMethod
appRoutes: {
"add": "AddSeries",
"add/new": "AddNewSeries",
"add/existing": "AddExistingSeries",
}
});
NzbDrone.addInitializer(function (options) {
new NzbDrone.MyRouter();
Backbone.history.start();
});