mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-05-02 12:26:05 +02:00
Fix rest API
This commit is contained in:
@@ -93,7 +93,7 @@ void RestAPI::handle_update_camera(RequestContext *context)
|
|||||||
|
|
||||||
// gets
|
// 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");
|
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");
|
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
|
// heartbeat
|
||||||
|
|
||||||
void RestAPI::pong(RequestContext *context)
|
void RestAPI::pong(RequestContext *context)
|
||||||
|
|||||||
Reference in New Issue
Block a user