WebApiRemote - allow passing parameters to restart

This commit is contained in:
Diogo Trindade committed 2023-10-17 00:56:58 +01:00
1 parent 0f8c8a6e11
commit c55cb5266b
1 file changed
+2 -2
@@ -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")]