Skip to content

Commit

Permalink
[feat #196] PathVariable 이름 추가 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudxo authored Jan 28, 2025
1 parent 635a981 commit 2a59431
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class AnswerController {
@ApiResponse(useReturnTypeSchema = true)
@PostMapping("/api/question-posts/{questionPostId}/answers")
public ResponseEntity<AnswerDetailResponse> registerAnswer(
@PathVariable Long questionPostId,
@PathVariable("questionPostId") Long questionPostId,
@Valid @RequestBody RegisterAnswerRequest request,
@AuthenticationPrincipal Member member
) {
Expand All @@ -42,7 +42,7 @@ public ResponseEntity<AnswerDetailResponse> registerAnswer(
@ApiResponse(useReturnTypeSchema = true)
@GetMapping("/api/question-posts/{questionPostId}/answers")
public ResponseEntity<PageResponse<AnswerDetailResponse>> getAnswersByQuestionPostId(
@PathVariable Long questionPostId
@PathVariable("questionPostId") Long questionPostId
) {
PageResponse<AnswerDetailResponse> response = answerService.getAnswersByQuestionPostId(questionPostId);
return ResponseEntity.ok(response);
Expand Down

0 comments on commit 2a59431

Please sign in to comment.