2013-02-15 23:38:53 +00:00
|
|
|
|
require(['app','Controller'], function (app, controller) {
|
2013-02-14 02:28:56 +00:00
|
|
|
|
|
|
|
|
|
NzbDrone.Router = Backbone.Marionette.AppRouter.extend({
|
|
|
|
|
|
2013-02-15 23:38:53 +00:00
|
|
|
|
controller: controller,
|
2013-02-14 02:28:56 +00:00
|
|
|
|
appRoutes: {
|
2013-02-15 02:40:29 +00:00
|
|
|
|
'': 'series',
|
2013-02-14 02:28:56 +00:00
|
|
|
|
'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();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|