improve user experience by delegating application restart responsibility to the host user
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
using Oqtane.Models;
|
||||
using Oqtane.Models;
|
||||
using System.Threading.Tasks;
|
||||
using System.Net.Http;
|
||||
using Oqtane.Shared;
|
||||
@ -25,5 +25,10 @@ namespace Oqtane.Services
|
||||
{
|
||||
return await GetJsonAsync<Installation>($"{ApiUrl}/upgrade");
|
||||
}
|
||||
|
||||
public async Task RestartAsync()
|
||||
{
|
||||
await PostAsync($"{ApiUrl}/restart");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user