feat: implement category management API with CRUD operations for categories.

This commit is contained in:
JakkrapartXD 2026-01-15 16:53:13 +07:00
parent 1caeac6226
commit 4b335b6b49
5 changed files with 220 additions and 2 deletions

View file

@ -1,4 +1,5 @@
import { Get, Body, Post, Route, Tags, SuccessResponse, Response, Example, Controller, Security, Request, Put } from 'tsoa';
import { ValidationError } from '../middleware/errorHandler';
import { UserService } from '../services/user.service';
import {
UserResponse,
@ -10,7 +11,6 @@ import {
} from '../types/user.types';
import { ChangePassword } from '../types/auth.types';
import { profileUpdateSchema, changePasswordSchema } from "../validators/user.validator";
import { ValidationError } from '../middleware/errorHandler';
@Route('api/user')
@Tags('User')