add: more debugging

add: more options for testing
This commit is contained in:
Tobias Reisinger 2020-08-14 23:18:22 +02:00
parent 0efbd2a22f
commit e84d54f562
23 changed files with 130 additions and 63 deletions

View file

@ -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);