2013-02-16 00:38:53 +01:00
|
|
|
|
require(['app','Controller'], function (app, controller) {
|
2013-02-14 03:28:56 +01:00
|
|
|
|
|
|
|
|
|
NzbDrone.Router = Backbone.Marionette.AppRouter.extend({
|
|
|
|
|
|
2013-02-16 00:38:53 +01:00
|
|
|
|
controller: controller,
|
2013-02-14 03:28:56 +01:00
|
|
|
|
appRoutes: {
|
2013-02-15 03:40:29 +01:00
|
|
|
|
'': 'series',
|
2013-02-14 03:28:56 +01:00
|
|
|
|
'series': 'series',
|
|
|
|
|
'series/index': 'series',
|
|
|
|
|
'series/add': 'addSeries',
|
|
|
|
|
'series/add/:action(/:query)': 'addSeries',
|
2013-03-02 20:13:23 +01:00
|
|
|
|
'series/details/:query': 'seriesDetails',
|
2013-02-20 08:45:52 +01:00
|
|
|
|
'upcoming': 'upcoming',
|
|
|
|
|
'upcoming/index': 'upcoming',
|
2013-02-23 18:42:15 +01:00
|
|
|
|
'calendar': 'calendar',
|
2013-03-04 01:09:43 +01:00
|
|
|
|
'settings': 'settings',
|
|
|
|
|
'settings/:action(/:query)': 'settings',
|
2013-03-21 04:02:57 +01:00
|
|
|
|
'missing': 'missing',
|
2013-02-14 03:28:56 +01:00
|
|
|
|
':whatever': 'notFound'
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
NzbDrone.addInitializer(function () {
|
|
|
|
|
|
|
|
|
|
NzbDrone.Router = new NzbDrone.Router();
|
2013-02-18 04:04:28 +01:00
|
|
|
|
Backbone.history.start({ pushState: true });
|
2013-02-14 03:28:56 +01:00
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|