mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 02:37:40 +00:00
6296e425d3
Sending headers for DownloadString and DownloadFile in addition to DownloadStream.
26 lines
697 B
JavaScript
26 lines
697 B
JavaScript
require(['app','Controller'], function (app, controller) {
|
|
|
|
NzbDrone.Router = Backbone.Marionette.AppRouter.extend({
|
|
|
|
controller: controller,
|
|
appRoutes: {
|
|
'': 'series',
|
|
'series': 'series',
|
|
'series/index': 'series',
|
|
'series/add': 'addSeries',
|
|
'series/add/:action(/:query)': 'addSeries',
|
|
'upcoming': 'upcoming',
|
|
'upcoming/index': 'upcoming',
|
|
'calendar': 'calendar',
|
|
':whatever': 'notFound'
|
|
}
|
|
});
|
|
|
|
NzbDrone.addInitializer(function () {
|
|
|
|
NzbDrone.Router = new NzbDrone.Router();
|
|
Backbone.history.start({ pushState: true });
|
|
|
|
});
|
|
});
|
|
|