Moved /api/episodes to /api/episode to align with other endpoints

This commit is contained in:
markus101 2014-02-04 20:36:16 -08:00
parent 9ee535328f
commit 5a673a33ab
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ namespace NzbDrone.Api.Episodes
private readonly IEpisodeService _episodeService; private readonly IEpisodeService _episodeService;
public EpisodeModule(ICommandExecutor commandExecutor, IEpisodeService episodeService) public EpisodeModule(ICommandExecutor commandExecutor, IEpisodeService episodeService)
: base(commandExecutor, "episodes") : base(commandExecutor)
{ {
_episodeService = episodeService; _episodeService = episodeService;

View File

@ -5,7 +5,7 @@ define(
'Series/EpisodeModel' 'Series/EpisodeModel'
], function (Backbone, EpisodeModel) { ], function (Backbone, EpisodeModel) {
return Backbone.Collection.extend({ return Backbone.Collection.extend({
url : window.NzbDrone.ApiRoot + '/episodes', url : window.NzbDrone.ApiRoot + '/episode',
model: EpisodeModel, model: EpisodeModel,
state: { state: {

View File

@ -11,7 +11,7 @@ define(
}, },
methodUrls: { methodUrls: {
'update': window.NzbDrone.ApiRoot + '/episodes' 'update': window.NzbDrone.ApiRoot + '/episode'
}, },
sync: function(method, model, options) { sync: function(method, model, options) {