add: tags_STR endpoint with GET and DELETE

This commit is contained in:
Tobias Reisinger 2020-06-19 16:26:08 +02:00
parent 4614ba50ac
commit cb0614cf8c
6 changed files with 131 additions and 1 deletions

View file

@ -79,6 +79,8 @@ router_init()
router_register_endpoint("/api/v1/relays/tag/{str}", HTTP_METHOD_GET, api_v1_relays_tag_STR_GET);
router_register_endpoint("/api/v1/tags/", HTTP_METHOD_GET, api_v1_tags_GET);
router_register_endpoint("/api/v1/tags/{str}", HTTP_METHOD_GET, api_v1_tags_STR_GET);
router_register_endpoint("/api/v1/tags/{str}", HTTP_METHOD_DELETE, api_v1_tags_STR_DELETE);
}
endpoint_t*