fixed route rest tags typo
MODIFY
src/server/rest/v1/router/api/TagRouter.ts
src/server/rest/v1/router/api/TagRouter.ts
@@ -64,13 +64,13 @@ export default class TagRouter {
}
protected buildRouteImportTag(): void {
- this.router.post(`/${ServerRoute.REST_TAG_IMPORT}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.post(`/${ServerRoute.REST_TAGS_IMPORT}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(TagService.handleImportTags.bind(this), ServerAction.TAGS_IMPORT, req, res, next);
});
}
protected buildRouteExportTag(): void {
- this.router.get(`/${ServerRoute.REST_TAG_EXPORT}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.get(`/${ServerRoute.REST_TAGS_EXPORT}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(TagService.handleExportTags.bind(this), ServerAction.TAGS_EXPORT, req, res, next);
});
}

MODIFY
test/api/client/UserApi.ts
test/api/client/UserApi.ts
@@ -61,7 +61,7 @@ export default class UserApi extends CrudApi {
}
public async exportTags(params) {
- return await super.read(params, this.buildRestEndpointUrl(ServerRoute.REST_TAG_EXPORT));
+ return await super.read(params, this.buildRestEndpointUrl(ServerRoute.REST_TAGS_EXPORT));
}
public async exportUsers(params) {

fixed route rest tags typo