Added deleteTag endpoint + doc
MODIFY
src/server/rest/v1/router/api/TagRouter.ts
src/server/rest/v1/router/api/TagRouter.ts
@@ -16,6 +16,7 @@ export default class TagRouter {
this.buildRouteTags();
this.buildRouteTag();
this.buildRouteCreateTag();
+ this.buildRouteDeleteTag();
return this.router;
}
@@ -38,4 +39,11 @@ export default class TagRouter {
await RouterUtils.handleServerAction(TagService.handleCreateTag.bind(this), ServerAction.TAG_CREATE, req, res, next);
});
}
+
+ protected buildRouteDeleteTag(): void {
+ this.router.delete(`/${ServerRoute.REST_TAG}`, async (req: Request, res: Response, next: NextFunction) => {
+ req.query.ID = req.params.id;
+ await RouterUtils.handleServerAction(TagService.handleDeleteTag.bind(this), ServerAction.TAG, req, res, next);
+ });
+ }
}

Added deleteTag endpoint + doc