add: new commands to controller

This commit is contained in:
Tobias Reisinger 2020-08-24 15:59:46 +02:00
parent b969ddd4ff
commit dd9e533f22
12 changed files with 127 additions and 62 deletions

View file

@ -147,7 +147,7 @@ api_v1_controllers_STR_PUT(struct mg_connection *nc, struct http_message *hm, en
cJSON_Delete(json);
json = controller_to_json(controller);
command_set_controller_name(controller);
command_controller_name_set(controller);
endpoint_response_json(response, 200, json);
cJSON_Delete(json);