OTA API refactoring: renamed files and defines

This commit is contained in:
robert committed 2023-09-26 08:33:39 -04:00
1 parent 822b0c011a
commit fa54a22aed
13 files changed
+536 -536

No files matched your search

+1 -1
View File
@@ -211,7 +211,7 @@ function FirmwareUpdate({}) {
const oncommit = ev => fetch('api/firmware/commit')
.then(r => r.json())
.then(refresh);
const onreboot = ev => fetch('api/sys/reset')
const onreboot = ev => fetch('api/device/reset')
.then(r => r.json())
.then(r => new Promise(r => setTimeout(ev => { refresh(); r(); }, 3000)));
const onrollback = ev => fetch('api/firmware/rollback')