Skip to content

Commit db18245

Browse files
committed
Merge branch 'develop' of https://github.com/DevKor-github/TEAM-D-25-1-BE into develop
2 parents 92c3ee0 + d6a90fe commit db18245

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/user/controller.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,26 @@ export class UserController {
240240
return res.status(HttpStatus.OK).json(result); // TODO: Formatting
241241
}
242242

243+
@Get(':userId/followers')
244+
@ApiResponse({
245+
status: 200,
246+
description: 'Get follower list by userId',
247+
type: FollowerListResponse,
248+
})
249+
async getFollowerListByUserId(
250+
@Param('userId') userId: string,
251+
@Query('per_page', new DefaultValuePipe(10), ParseIntPipe) perPage: number,
252+
@Query('page', new DefaultValuePipe(1), ParseIntPipe) page: number,
253+
@Res() res: Response,
254+
) {
255+
const result = await this.getFollowerListUseCase.execute(
256+
userId,
257+
perPage,
258+
page,
259+
);
260+
return res.status(HttpStatus.OK).json(result);
261+
}
262+
243263
@Post('me/fcm-token')
244264
@UseGuards(AccessTokenGuard)
245265
@ApiResponse({

0 commit comments

Comments
 (0)