From ca7373792deaf69e6fb7374a3a45a0a8977855dd Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 6 Jul 2024 12:19:03 +0200 Subject: [PATCH] add /partition endpoint --- mock-api/rest_server.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mock-api/rest_server.ts b/mock-api/rest_server.ts index 8ab02df4a..74c8eb6b6 100644 --- a/mock-api/rest_server.ts +++ b/mock-api/rest_server.ts @@ -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);