1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Routing.js

31 lines
1.0 KiB
JavaScript
Raw Normal View History

"use strict";
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',
'series/details/:query' : 'seriesDetails',
'calendar' : 'calendar',
'settings' : 'settings',
'settings/:action(/:query)' : 'settings',
'missing' : 'missing',
2013-05-03 09:53:32 +03:00
'history' : 'history',
':whatever' : 'notFound'
}
});
NzbDrone.addInitializer(function () {
NzbDrone.Router = new NzbDrone.Router();
2013-02-18 06:04:28 +03:00
Backbone.history.start({ pushState: true });
});
});