Skip to content

Commit

Permalink
fix: fix response
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 committed Jul 21, 2024
1 parent 3c0501c commit 80d1673
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/gymmi/controller/MyPageController.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import gymmi.entity.User;
import gymmi.global.Logined;
import gymmi.request.EditingMyPageRequest;
import gymmi.response.MyPageResponse;
import gymmi.service.MyPageService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
Expand Down Expand Up @@ -44,11 +45,11 @@ public ResponseEntity<Void> editMyPage(
}

@GetMapping("/my")
public ResponseEntity<Void> seeMyPage(
public ResponseEntity<MyPageResponse> seeMyPage(
@Logined User user
) {
myPageService.getMyInfo(user);
return ResponseEntity.ok().build();
MyPageResponse response = myPageService.getMyInfo(user);
return ResponseEntity.ok().body(response);
}


Expand Down

0 comments on commit 80d1673

Please sign in to comment.