1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-18 23:48:35 +02:00
Sonarr/src/UI/Router.js

31 lines
1.1 KiB
JavaScript
Raw Normal View History

2013-06-26 04:00:56 +03:00
'use strict';
2013-10-09 04:43:41 +03:00
define(
2013-06-21 04:43:58 +03:00
[
'marionette',
2013-10-09 04:43:41 +03:00
'Controller'
], function (Marionette, Controller) {
2013-06-21 04:43:58 +03:00
2013-10-09 04:43:41 +03:00
return Marionette.AppRouter.extend({
2013-06-21 04:43:58 +03:00
controller: new Controller(),
2013-06-21 04:43:58 +03:00
appRoutes : {
2013-06-26 04:00:56 +03:00
'addseries' : 'addSeries',
'addseries/:action(/:query)': 'addSeries',
'calendar' : 'calendar',
'settings' : 'settings',
'settings/:action(/:query)' : 'settings',
'wanted' : 'wanted',
'wanted/:action' : 'wanted',
2013-06-26 04:00:56 +03:00
'history' : 'history',
'history/:action' : 'history',
2013-06-26 04:00:56 +03:00
'rss' : 'rss',
2013-07-28 23:20:26 +03:00
'system' : 'system',
'system/:action' : 'system',
'seasonpass' : 'seasonPass',
2013-12-09 08:25:27 +03:00
'serieseditor' : 'seriesEditor',
2013-10-09 04:43:41 +03:00
':whatever' : 'showNotFound'
2013-06-21 04:43:58 +03:00
}
});
});