Add text responses as json with msg key

This commit is contained in:
Tobias Reisinger 2020-11-13 23:20:07 +01:00
parent f97b149376
commit 1d6e8ff037
18 changed files with 114 additions and 83 deletions
src/handlers

View file

@ -84,7 +84,7 @@ handle_http_request(struct mg_connection *nc, struct http_message *hm)
endpoint_response_t response;
M_RESPONSE_TEXT_STATIC(LOGGER_NONE, &response, 500, "server did not create a response");
M_RESPONSE_MSG(LOGGER_NONE, &response, 500, "server did not create a response");
if(!endpoint)
{