1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-18 23:48:35 +02:00
Sonarr/NzbDrone.Web/_backboneApp/Routing.js

25 lines
565 B
JavaScript
Raw Normal View History

2013-02-16 02:38:53 +03:00
require(['app','Controller'], function (app, controller) {
NzbDrone.Router = Backbone.Marionette.AppRouter.extend({
2013-02-16 02:38:53 +03:00
controller: controller,
appRoutes: {
'': 'series',
'series': 'series',
'series/index': 'series',
'series/add': 'addSeries',
'series/add/:action(/:query)': 'addSeries',
':whatever': 'notFound'
}
});
NzbDrone.addInitializer(function () {
NzbDrone.Router = new NzbDrone.Router();
Backbone.history.start();
});
});