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
|
|
|
|
2013-06-25 02:41:59 +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',
|
2014-02-09 22:03:49 +03:00
|
|
|
'wanted' : 'wanted',
|
|
|
|
'wanted/:action' : 'wanted',
|
2013-06-26 04:00:56 +03:00
|
|
|
'history' : 'history',
|
2013-10-02 08:20:30 +03:00
|
|
|
'history/:action' : 'history',
|
2013-06-26 04:00:56 +03:00
|
|
|
'rss' : 'rss',
|
2013-07-28 23:20:26 +03:00
|
|
|
'system' : 'system',
|
2013-10-01 08:30:02 +03:00
|
|
|
'system/:action' : 'system',
|
2013-08-05 12:09:41 +03:00
|
|
|
'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
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|