add /partition endpoint

This commit is contained in:
proddy
2024-07-06 12:19:03 +02:00
parent fc4e1c0084
commit ca7373792d

View File

@@ -339,6 +339,7 @@ const ACTIVITY_ENDPOINT = REST_ENDPOINT_ROOT + 'activity';
const ESPSYSTEM_STATUS_ENDPOINT = REST_ENDPOINT_ROOT + 'ESPSystemStatus';
const SECURITY_SETTINGS_ENDPOINT = REST_ENDPOINT_ROOT + 'securitySettings';
const RESTART_ENDPOINT = REST_ENDPOINT_ROOT + 'restart';
const RESTART_PARTITION_ENDPOINT = REST_ENDPOINT_ROOT + 'partition';
const FACTORY_RESET_ENDPOINT = REST_ENDPOINT_ROOT + 'factoryReset';
// SYSTEM SIGNIN
@@ -4209,6 +4210,10 @@ router
console.log('restarting...');
return status(200);
})
.post(RESTART_PARTITION_ENDPOINT, () => {
console.log('restarting...');
return status(200);
})
.post(FACTORY_RESET_ENDPOINT, () => status(200))
.post(SIGN_IN_ENDPOINT, () => signin)
.get(GENERATE_TOKEN_ENDPOINT, () => generate_token);