BaseUrl is finally finished! #72

This commit is contained in:
tidusjar 2016-04-16 14:02:06 +01:00
parent 47dc543b09
commit 67c968e886
17 changed files with 201 additions and 64 deletions

View file

@ -595,6 +595,11 @@ namespace PlexRequests.UI.Modules
private Response GetCpProfiles()
{
var settings = this.Bind<CouchPotatoSettings>();
var valid = this.Validate(settings);
if (!valid.IsValid)
{
return Response.AsJson(valid.SendJsonError());
}
var profiles = CpApi.GetProfiles(settings.FullUri, settings.ApiKey);
// set the cache