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)