Skip to content

Commit e1ed645

Browse files
authored
Merge pull request #20 from ccaaffee/fix/userpath
chore: user api 경로를 restful하게 수정
2 parents e5d6738 + 131bac8 commit e1ed645

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/user/user.controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ import { GetUser } from './decorator/get-user.decorator';
1616
import { UserInfo } from 'src/auth/types/userInfo.type';
1717
import {
1818
ApiBearerAuth,
19+
ApiBody,
1920
ApiConsumes,
2021
ApiInternalServerErrorResponse,
2122
ApiOkResponse,
2223
ApiOperation,
2324
ApiQuery,
2425
ApiTags,
2526
ApiUnauthorizedResponse,
26-
ApiBody,
2727
} from '@nestjs/swagger';
2828
import { UserInfoDto } from './dto/res/userInfo.dto';
2929
import { 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', {

0 commit comments

Comments
 (0)