Fix rest API

This commit is contained in:
Lorow
2024-11-09 20:19:47 +01:00
parent aaf8fa41cf
commit edce9e6ce4

View File

@@ -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)