mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-19 06:23:44 +02:00
Fix rest API
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user