2013-03-30 02:00:38 +03:00
|
|
|
"use strict";
|
|
|
|
require(['app', 'Controller'], function (app, controller) {
|
2013-02-14 05:28:56 +03:00
|
|
|
|
|
|
|
NzbDrone.Router = Backbone.Marionette.AppRouter.extend({
|
|
|
|
|
2013-02-16 02:38:53 +03:00
|
|
|
controller: controller,
|
2013-03-30 02:00:38 +03:00
|
|
|
appRoutes : {
|
|
|
|
'' : 'series',
|
|
|
|
'series' : 'series',
|
|
|
|
'series/index' : 'series',
|
|
|
|
'series/add' : 'addSeries',
|
2013-02-14 05:28:56 +03:00
|
|
|
'series/add/:action(/:query)': 'addSeries',
|
2013-03-30 02:00:38 +03:00
|
|
|
'series/details/:query' : 'seriesDetails',
|
|
|
|
'calendar' : 'calendar',
|
|
|
|
'settings' : 'settings',
|
|
|
|
'settings/:action(/:query)' : 'settings',
|
|
|
|
'missing' : 'missing',
|
2013-05-03 09:53:32 +03:00
|
|
|
'history' : 'history',
|
2013-03-30 02:00:38 +03:00
|
|
|
':whatever' : 'notFound'
|
2013-02-14 05:28:56 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
NzbDrone.addInitializer(function () {
|
|
|
|
|
|
|
|
NzbDrone.Router = new NzbDrone.Router();
|
2013-02-18 06:04:28 +03:00
|
|
|
Backbone.history.start({ pushState: true });
|
2013-02-14 05:28:56 +03:00
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|