add: response macros
add: preparation for more macro endpoints
This commit is contained in:
parent
9d2c48d645
commit
01ffb1d58d
26 changed files with 482 additions and 353 deletions
src
|
@ -84,8 +84,5 @@ endpoint_response_json(endpoint_response_t *response, int status_code, const cJS
|
|||
}
|
||||
}
|
||||
|
||||
LOGGER_ERR("failed to print schedule json\n");
|
||||
|
||||
static const char content[] = "failed to print json";
|
||||
endpoint_response_text(response, status_code, content, STRLEN(content));
|
||||
M_RESPONSE_TEXT_STATIC(LOGGER_ERR, response, 500, "failed to print json");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue