Skip to content

Commit

Permalink
refactor: 발송 옵션에 따른 질문 조회 endpoint 변경 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
623nana committed Aug 6, 2021
1 parent 8f18ec8 commit 2fc3ddb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public BaseResponse<List<OptionResponse>> findAllOptions() {
return new BaseResponse<>(200, 0, "", options);
}

@GetMapping("/letters/options/{optionId}")
@GetMapping("/letters/options/{optionId}/questions")
public BaseResponse<List<QuestionResponse>> findQuestionsByOptionId(@PathVariable("optionId") Long optionId) {
List<QuestionResponse> questions = letterService.findQuestionsByOptionId(optionId);
return new BaseResponse<>(200, 0, "", questions);
Expand Down

0 comments on commit 2fc3ddb

Please sign in to comment.