renamed /api/qualityprofiles to /api/qualityprofile
This commit is contained in:
parent
3d3390187e
commit
4e5588f5dd
|
@ -10,7 +10,6 @@ namespace NzbDrone.Api.Qualities
|
||||||
private readonly IQualityProfileService _qualityProfileService;
|
private readonly IQualityProfileService _qualityProfileService;
|
||||||
|
|
||||||
public QualityProfileModule(IQualityProfileService qualityProfileService)
|
public QualityProfileModule(IQualityProfileService qualityProfileService)
|
||||||
: base("/qualityprofiles")
|
|
||||||
{
|
{
|
||||||
_qualityProfileService = qualityProfileService;
|
_qualityProfileService = qualityProfileService;
|
||||||
SharedValidator.RuleFor(c => c.Name).NotEmpty();
|
SharedValidator.RuleFor(c => c.Name).NotEmpty();
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace NzbDrone.Api.Qualities
|
||||||
private readonly IQualityDefinitionService _qualityDefinitionService;
|
private readonly IQualityDefinitionService _qualityDefinitionService;
|
||||||
|
|
||||||
public QualityProfileSchemaModule(IQualityDefinitionService qualityDefinitionService)
|
public QualityProfileSchemaModule(IQualityDefinitionService qualityDefinitionService)
|
||||||
: base("/qualityprofiles/schema")
|
: base("/qualityprofile/schema")
|
||||||
{
|
{
|
||||||
_qualityDefinitionService = qualityDefinitionService;
|
_qualityDefinitionService = qualityDefinitionService;
|
||||||
|
|
||||||
|
|
|
@ -8,16 +8,16 @@
|
||||||
<option es3="false" />
|
<option es3="false" />
|
||||||
<option forin="true" />
|
<option forin="true" />
|
||||||
<option immed="true" />
|
<option immed="true" />
|
||||||
|
<option latedef="true" />
|
||||||
<option newcap="true" />
|
<option newcap="true" />
|
||||||
<option noarg="true" />
|
<option noarg="true" />
|
||||||
<option noempty="false" />
|
<option noempty="false" />
|
||||||
<option nonew="true" />
|
<option nonew="true" />
|
||||||
<option plusplus="false" />
|
<option plusplus="false" />
|
||||||
<option undef="true" />
|
<option undef="true" />
|
||||||
|
<option unused="true" />
|
||||||
<option strict="true" />
|
<option strict="true" />
|
||||||
<option trailing="false" />
|
<option trailing="false" />
|
||||||
<option latedef="true" />
|
|
||||||
<option unused="true" />
|
|
||||||
<option quotmark="single" />
|
<option quotmark="single" />
|
||||||
<option maxdepth="3" />
|
<option maxdepth="3" />
|
||||||
<option asi="false" />
|
<option asi="false" />
|
||||||
|
|
|
@ -7,7 +7,7 @@ define(
|
||||||
|
|
||||||
var QualityProfileCollection = Backbone.Collection.extend({
|
var QualityProfileCollection = Backbone.Collection.extend({
|
||||||
model: QualityProfileModel,
|
model: QualityProfileModel,
|
||||||
url : window.NzbDrone.ApiRoot + '/qualityprofiles'
|
url : window.NzbDrone.ApiRoot + '/qualityprofile'
|
||||||
});
|
});
|
||||||
|
|
||||||
var profiles = new QualityProfileCollection();
|
var profiles = new QualityProfileCollection();
|
||||||
|
|
|
@ -8,6 +8,6 @@ define(
|
||||||
|
|
||||||
return Backbone.Collection.extend({
|
return Backbone.Collection.extend({
|
||||||
model: QualityProfileModel,
|
model: QualityProfileModel,
|
||||||
url : window.NzbDrone.ApiRoot + '/qualityprofiles/schema'
|
url : window.NzbDrone.ApiRoot + '/qualityprofile/schema'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue