Add support /api/restart #652

This commit is contained in:
Alex X
2023-10-09 17:11:57 +03:00
parent b252fcaaa1
commit 9a2e9dd6d1
3 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -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());
}