extensibility enhancements for site templates

This commit is contained in:
Shaun Walker
2020-03-19 12:07:33 -04:00
parent 50bbc7f5b8
commit 18a843e74f
39 changed files with 758 additions and 194 deletions

View File

@ -24,19 +24,19 @@ namespace Oqtane.Services
get { return CreateApiUrl(_siteState.Alias, _navigationManager.Uri, "Installation"); }
}
public async Task<GenericResponse> IsInstalled()
public async Task<Installation> IsInstalled()
{
return await _http.GetJsonAsync<GenericResponse>(Apiurl + "/installed");
return await _http.GetJsonAsync<Installation>(Apiurl + "/installed");
}
public async Task<GenericResponse> Install(string connectionstring)
public async Task<Installation> Install(string connectionstring)
{
return await _http.PostJsonAsync<GenericResponse>(Apiurl, connectionstring);
return await _http.PostJsonAsync<Installation>(Apiurl, connectionstring);
}
public async Task<GenericResponse> Upgrade()
public async Task<Installation> Upgrade()
{
return await _http.GetJsonAsync<GenericResponse>(Apiurl + "/upgrade");
return await _http.GetJsonAsync<Installation>(Apiurl + "/upgrade");
}
}
}