mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 13:28:33 +00:00
WebApiRemote - allow passing parameters to restart
This commit is contained in:
parent
0f8c8a6e11
commit
c55cb5266b
@ -45,9 +45,9 @@ public class RemoteController : WebApiController
|
||||
}
|
||||
|
||||
[Route(HttpVerbs.Post, "/remote/restart")]
|
||||
public void PostRestart()
|
||||
public void PostRestart([FormField] string[] args)
|
||||
{
|
||||
Utilities.Restart(_coreService.IsElevated, TimeSpan.FromMilliseconds(500));
|
||||
Utilities.Restart(_coreService.IsElevated, TimeSpan.FromMilliseconds(500), args);
|
||||
}
|
||||
|
||||
[Route(HttpVerbs.Post, "/remote/shutdown")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user