add: tag post endpoint

This commit is contained in:
Tobias Reisinger 2020-08-11 23:33:04 +02:00
parent 7371c9a84e
commit 505faa6df2
4 changed files with 60 additions and 2 deletions

View file

@ -86,6 +86,7 @@ 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/", HTTP_METHOD_POST, api_v1_tags_POST);
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);