diff --git a/src/main/java/com/leets/team2/xclone/domain/follow/controller/FollowController.java b/src/main/java/com/leets/team2/xclone/domain/follow/controller/FollowController.java index 8613d54..57d0083 100644 --- a/src/main/java/com/leets/team2/xclone/domain/follow/controller/FollowController.java +++ b/src/main/java/com/leets/team2/xclone/domain/follow/controller/FollowController.java @@ -21,6 +21,7 @@ @RequestMapping("/api/follows") public class FollowController { private final FollowService followService; + @Operation(summary = "특정 유저의 팔로워 목록 조회 API", description = "특정 유저의 팔로워 목록을 조회합니다.") @GetMapping("/followers") public ResponseEntity>> getFollowersByTag(@RequestParam String tag){ @@ -48,6 +49,7 @@ public ResponseEntity> follow(@RequestBody FollowDTO.Save dto){ @Operation(summary = "언팔로우 API", description = "사용자가 다른 대상을 언팔로우합니다.") @DeleteMapping + @UseGuards({MemberGuard.class}) public ResponseEntity> unfollow(@RequestBody FollowDTO.Save dto){ Member currentMember = MemberContext.getMember(); followService.unfollowUser(dto, currentMember);