Add support /api/restart #652
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@
|
||||
r = await fetch('api/config', {method: 'POST', body: editor.getValue()});
|
||||
if (r.ok) {
|
||||
alert('OK');
|
||||
fetch('api/exit?code=100', {method: 'POST'});
|
||||
fetch('api/restart', {method: 'POST'});
|
||||
} else {
|
||||
alert(await r.text());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user