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