From edce9e6ce44b797c61fa4c82b0665792054eed86 Mon Sep 17 00:00:00 2001 From: Lorow Date: Sat, 9 Nov 2024 20:19:47 +0100 Subject: [PATCH] Fix rest API --- components/RestAPI/RestAPI/RestAPI.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/RestAPI/RestAPI/RestAPI.cpp b/components/RestAPI/RestAPI/RestAPI.cpp index 9726002..69f90a1 100644 --- a/components/RestAPI/RestAPI/RestAPI.cpp +++ b/components/RestAPI/RestAPI/RestAPI.cpp @@ -93,7 +93,7 @@ void RestAPI::handle_update_camera(RequestContext *context) // gets -void handle_get_config(RequestContext *context) +void RestAPI::handle_get_config(RequestContext *context) { mg_http_reply(context->connection, 200, JSON_RESPONSE, "{%m:%m}", MG_ESC("result"), "Device config updated"); } @@ -126,6 +126,11 @@ void RestAPI::handle_reboot(RequestContext *context) mg_http_reply(context->connection, 200, JSON_RESPONSE, "{%m:%m}", MG_ESC("result"), "Ok"); } +void RestAPI::handle_camera_reboot(RequestContext *context) +{ + mg_http_reply(context->connection, 200, JSON_RESPONSE, "{%m:%m}", MG_ESC("result"), "Ok"); +} + // heartbeat void RestAPI::pong(RequestContext *context)