mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
add missing security endpoint
This commit is contained in:
@@ -2370,6 +2370,7 @@ router
|
||||
// SYSTEM
|
||||
router
|
||||
.get(SYSTEM_STATUS_ENDPOINT, () => new Response(JSON.stringify(system_status), { headers }))
|
||||
.get(SECURITY_SETTINGS_ENDPOINT, () => new Response(JSON.stringify(security_settings), { headers }))
|
||||
.post(SECURITY_SETTINGS_ENDPOINT, async (request: any) => {
|
||||
security_settings = await request.json();
|
||||
return new Response('OK', { status: 200 });
|
||||
|
||||
Reference in New Issue
Block a user