Added deleteManyTags endpoint
MODIFY
src/server/rest/v1/router/api/TagRouter.ts
src/server/rest/v1/router/api/TagRouter.ts
@@ -17,6 +17,7 @@ export default class TagRouter {
this.buildRouteTag();
this.buildRouteCreateTag();
this.buildRouteDeleteTag();
+ this.buildRouteDeleteTags();
this.buildRouteUpdateTag();
this.buildRouteImportTag();
this.buildRouteExportTag();
@@ -50,6 +51,12 @@ export default class TagRouter {
});
}
+ protected buildRouteDeleteTags(): void {
+ this.router.delete(`/${ServerRoute.REST_TAGS}`, async (req: Request, res: Response, next: NextFunction) => {
+ await RouterUtils.handleServerAction(TagService.handleDeleteTags.bind(this), ServerAction.TAGS_DELETE, req, res, next);
+ });
+ }
+
protected buildRouteUpdateTag(): void {
this.router.put(`/${ServerRoute.REST_TAG}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(TagService.handleUpdateTag.bind(this), ServerAction.TAG_UPDATE, req, res, next);

Added deleteManyTags endpoint