improve user experience by delegating application restart responsibility to the host user
This commit is contained in:
@ -68,6 +68,14 @@ namespace Oqtane.Controllers
|
||||
return installation;
|
||||
}
|
||||
|
||||
// GET api/<controller>/restart
|
||||
[HttpPost("restart")]
|
||||
[Authorize(Roles = RoleNames.Host)]
|
||||
public void Restart()
|
||||
{
|
||||
_installationManager.RestartApplication();
|
||||
}
|
||||
|
||||
// GET api/<controller>/load
|
||||
[HttpGet("load")]
|
||||
public IActionResult Load()
|
||||
|
Reference in New Issue
Block a user