add: schedule tags endpoint

fix: memory leak for string args
This commit is contained in:
Tobias Reisinger 2020-05-06 10:53:42 +02:00
parent a127a68e31
commit f040cd8b21
6 changed files with 71 additions and 2 deletions

View file

@ -18,4 +18,7 @@ api_v1_schedules_STR_PUT(struct mg_connection *c, endpoint_args_t *args, struct
void
api_v1_schedules_STR_DELETE(struct mg_connection *c, endpoint_args_t *args, struct http_message *hm);
void
api_v1_schedules_tag_STR_GET(struct mg_connection *c, endpoint_args_t *args, struct http_message *hm);
#endif /* CORE_ENDPOINTS_API_V1_SCHEDULES_H */

View file

@ -17,7 +17,7 @@ typedef struct
union
{
int v_int;
char *v_str;
const char *v_str;
} value;
} endpoint_args_t;