Skip to content

Commit d781633

Browse files
fix:: club controller 라우팅 순서 수정
1 parent fa5a3a3 commit d781633

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/home/club/club.controller.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,23 @@ export class ClubController {
5353
return await this.clubService.getClubs(user, getClubRequestDto);
5454
}
5555

56+
@Get('hot')
57+
async getHotClubs(): Promise<GetHotClubResponseDto[]> {
58+
return await this.clubService.getHotClubs();
59+
}
60+
61+
@UseGuards(OptionalJwtAuthGuard)
62+
@Get('recommend')
63+
async getRecommendClubs(
64+
@User() user: AuthorizedUserDto | null,
65+
@Query() getRecommendClubRequestDto: GetRecommendClubRequestDto,
66+
): Promise<GetRecommendClubResponseDto[]> {
67+
return await this.clubService.getRecommendClubs(
68+
user,
69+
getRecommendClubRequestDto,
70+
);
71+
}
72+
5673
@UseGuards(OptionalJwtAuthGuard)
5774
@Get('/:clubId')
5875
async getClubDetail(
@@ -78,23 +95,6 @@ export class ClubController {
7895
);
7996
}
8097

81-
@Get('hot')
82-
async getHotClubs(): Promise<GetHotClubResponseDto[]> {
83-
return await this.clubService.getHotClubs();
84-
}
85-
86-
@UseGuards(OptionalJwtAuthGuard)
87-
@Get('recommend')
88-
async getRecommendClubs(
89-
@User() user: AuthorizedUserDto | null,
90-
@Query() getRecommendClubRequestDto: GetRecommendClubRequestDto,
91-
): Promise<GetRecommendClubResponseDto[]> {
92-
return await this.clubService.getRecommendClubs(
93-
user,
94-
getRecommendClubRequestDto,
95-
);
96-
}
97-
9898
@UseGuards(JwtAuthGuard, RolesGuard)
9999
@Roles(Role.admin)
100100
@UseInterceptors(FileInterceptor('clubImage'))

0 commit comments

Comments
 (0)