using Oqtane.Models; using System.Threading.Tasks; using System.Net.Http; using Oqtane.Shared; namespace Oqtane.Services { public class InstallationService : ServiceBase, IInstallationService { public InstallationService(HttpClient http):base(http) { } private string ApiUrl => CreateApiUrl("Installation"); public async Task IsInstalled() { return await GetJsonAsync($"{ApiUrl}/installed"); } public async Task Install(InstallConfig config) { return await PostJsonAsync(ApiUrl, config); } public async Task Upgrade() { return await GetJsonAsync($"{ApiUrl}/upgrade"); } } }