2013-02-16 02:38:53 +03:00
|
|
|
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-02-14 05:28:56 +03:00
|
|
|
appRoutes: {
|
2013-02-15 05:40:29 +03:00
|
|
|
'': 'series',
|
2013-02-14 05:28:56 +03:00
|
|
|
'series': 'series',
|
|
|
|
'series/index': 'series',
|
|
|
|
'series/add': 'addSeries',
|
|
|
|
'series/add/:action(/:query)': 'addSeries',
|
2013-03-02 22:13:23 +03:00
|
|
|
'series/details/:query': 'seriesDetails',
|
2013-02-20 10:45:52 +03:00
|
|
|
'upcoming': 'upcoming',
|
|
|
|
'upcoming/index': 'upcoming',
|
2013-02-23 20:42:15 +03:00
|
|
|
'calendar': 'calendar',
|
2013-03-04 03:09:43 +03:00
|
|
|
'settings': 'settings',
|
|
|
|
'settings/:action(/:query)': 'settings',
|
2013-02-14 05:28:56 +03:00
|
|
|
':whatever': 'notFound'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|