add: more debugging
add: more options for testing
This commit is contained in:
parent
0efbd2a22f
commit
e84d54f562
23 changed files with 130 additions and 63 deletions
src/endpoints
|
@ -37,7 +37,7 @@ api_v1_schedules_STR_GET(struct mg_connection *nc, struct http_message *hm, endp
|
|||
return;
|
||||
}
|
||||
|
||||
cJSON *json = cJSON_CreateRaw(schedule_to_json(schedule));
|
||||
cJSON *json = schedule_to_json(schedule);
|
||||
|
||||
endpoint_response_json(response, 200, json);
|
||||
cJSON_Delete(json);
|
||||
|
@ -176,7 +176,7 @@ api_v1_schedules_STR_PUT(struct mg_connection *nc, struct http_message *hm, endp
|
|||
}
|
||||
|
||||
cJSON_Delete(json);
|
||||
json = cJSON_CreateRaw(schedule_to_json(schedule));
|
||||
json = schedule_to_json(schedule);
|
||||
|
||||
endpoint_response_json(response, 200, json);
|
||||
cJSON_Delete(json);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue