1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-14 23:13:24 +01:00
Radarr/UI/Routing.js

34 lines
1.2 KiB
JavaScript
Raw Normal View History

"use strict";
require(['app', 'Controller', 'RouteBinder'], function (app, controller, routeBinder) {
NzbDrone.Router = Backbone.Marionette.AppRouter.extend({
2013-02-16 00:38:53 +01:00
controller: controller,
appRoutes : {
'' : 'series',
'series' : 'series',
'series/index' : 'series',
'series/add' : 'addSeries',
'series/add/:action(/:query)': 'addSeries',
'series/details/:query' : 'seriesDetails',
'calendar' : 'calendar',
'settings' : 'settings',
'settings/:action(/:query)' : 'settings',
'missing' : 'missing',
2013-05-03 08:53:32 +02:00
'history' : 'history',
2013-06-05 02:49:53 +02:00
'logs' : 'logs',
'rss' : 'rss',
':whatever' : 'notFound'
}
});
NzbDrone.addInitializer(function () {
NzbDrone.Router = new NzbDrone.Router();
2013-02-18 04:04:28 +01:00
Backbone.history.start({ pushState: true });
routeBinder.bind();
});
});