Skip to content

Commit

Permalink
fix: 팔로우 취소에 토큰 검증 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
soyesenna committed Nov 14, 2024
1 parent 4ede8fa commit 9d326ab
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
@RequestMapping("/api/follows")
public class FollowController {
private final FollowService followService;

@Operation(summary = "특정 유저의 팔로워 목록 조회 API", description = "특정 유저의 팔로워 목록을 조회합니다.")
@GetMapping("/followers")
public ResponseEntity<ApiData<List<FollowDTO.Response>>> getFollowersByTag(@RequestParam String tag){
Expand Down Expand Up @@ -48,6 +49,7 @@ public ResponseEntity<ApiData<Void>> follow(@RequestBody FollowDTO.Save dto){

@Operation(summary = "언팔로우 API", description = "사용자가 다른 대상을 언팔로우합니다.")
@DeleteMapping
@UseGuards({MemberGuard.class})
public ResponseEntity<ApiData<Void>> unfollow(@RequestBody FollowDTO.Save dto){
Member currentMember = MemberContext.getMember();
followService.unfollowUser(dto, currentMember);
Expand Down

0 comments on commit 9d326ab

Please sign in to comment.