File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ import { GetUser } from './decorator/get-user.decorator';
1616import { UserInfo } from 'src/auth/types/userInfo.type' ;
1717import {
1818 ApiBearerAuth ,
19+ ApiBody ,
1920 ApiConsumes ,
2021 ApiInternalServerErrorResponse ,
2122 ApiOkResponse ,
2223 ApiOperation ,
2324 ApiQuery ,
2425 ApiTags ,
2526 ApiUnauthorizedResponse ,
26- ApiBody ,
2727} from '@nestjs/swagger' ;
2828import { UserInfoDto } from './dto/res/userInfo.dto' ;
2929import { UpdateNicknameDto } from './dto/req/updateNickname.dto' ;
@@ -67,7 +67,7 @@ export class UserController {
6767 type : NicknameDuplicateCheckDto ,
6868 description : 'Return whether nickname is duplicate or not' ,
6969 } )
70- @Get ( 'nickname/check' )
70+ @Get ( 'profile/ nickname/check' )
7171 async checkNicknameDuplicate (
7272 @Query ( 'nickname' ) nickname : string ,
7373 ) : Promise < NicknameDuplicateCheckDto > {
@@ -87,7 +87,7 @@ export class UserController {
8787 description : 'Internal Server Error' ,
8888 } )
8989 @ApiBearerAuth ( 'JWT' )
90- @Patch ( 'nickname' )
90+ @Patch ( 'profile/ nickname' )
9191 @UseGuards ( JwtAuthGuard )
9292 async updateNickname (
9393 @GetUser ( ) user : User ,
@@ -127,7 +127,7 @@ export class UserController {
127127 description : 'Internal Server Error' ,
128128 } )
129129 @ApiBearerAuth ( 'JWT' )
130- @Post ( 'profile- image' )
130+ @Post ( 'profile/ image' )
131131 @UseGuards ( JwtAuthGuard )
132132 @UseInterceptors (
133133 FileInterceptor ( 'image' , {
You can’t perform that action at this time.
0 commit comments