renamed /api/qualityprofiles to /api/qualityprofile

This commit is contained in:
Mark McDowall 2014-02-11 17:52:03 -08:00
parent 3d3390187e
commit 4e5588f5dd
5 changed files with 5 additions and 6 deletions

View File

@ -10,7 +10,6 @@ namespace NzbDrone.Api.Qualities
private readonly IQualityProfileService _qualityProfileService;
public QualityProfileModule(IQualityProfileService qualityProfileService)
: base("/qualityprofiles")
{
_qualityProfileService = qualityProfileService;
SharedValidator.RuleFor(c => c.Name).NotEmpty();

View File

@ -10,7 +10,7 @@ namespace NzbDrone.Api.Qualities
private readonly IQualityDefinitionService _qualityDefinitionService;
public QualityProfileSchemaModule(IQualityDefinitionService qualityDefinitionService)
: base("/qualityprofiles/schema")
: base("/qualityprofile/schema")
{
_qualityDefinitionService = qualityDefinitionService;

View File

@ -8,16 +8,16 @@
<option es3="false" />
<option forin="true" />
<option immed="true" />
<option latedef="true" />
<option newcap="true" />
<option noarg="true" />
<option noempty="false" />
<option nonew="true" />
<option plusplus="false" />
<option undef="true" />
<option unused="true" />
<option strict="true" />
<option trailing="false" />
<option latedef="true" />
<option unused="true" />
<option quotmark="single" />
<option maxdepth="3" />
<option asi="false" />

View File

@ -7,7 +7,7 @@ define(
var QualityProfileCollection = Backbone.Collection.extend({
model: QualityProfileModel,
url : window.NzbDrone.ApiRoot + '/qualityprofiles'
url : window.NzbDrone.ApiRoot + '/qualityprofile'
});
var profiles = new QualityProfileCollection();

View File

@ -8,6 +8,6 @@ define(
return Backbone.Collection.extend({
model: QualityProfileModel,
url : window.NzbDrone.ApiRoot + '/qualityprofiles/schema'
url : window.NzbDrone.ApiRoot + '/qualityprofile/schema'
});
});