mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 17:57:43 +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 });
|
|
|
|
});
|
|
});
|
|
|