feat: add install mode verification

This commit is contained in:
swve 2023-07-12 12:52:25 +01:00
parent 6e9998d45c
commit ce50fa760f
7 changed files with 64 additions and 15 deletions

View file

@ -30,3 +30,13 @@ export async function createDefaultElements() {
const res = await errorHandling(result);
return res;
}
export async function isInstallModeEnabled() {
const result = await fetch(`${getAPIUrl()}install/latest`, RequestBody("GET", null, null));
if (result.status === 200) {
return true;
}
else {
return false;
}
}