Skip to content

Commit

Permalink
Fix endpoint naming
Browse files Browse the repository at this point in the history
  • Loading branch information
EnesBaserr committed Dec 7, 2024
1 parent f351a33 commit b0edc4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static class QuestionEndpoints {
public static final String QUESTION_DELETE_UPVOTE = QUESTION_ID + "/deleteUpvote";
public static final String QUESTION_DELETE_DOWNVOTE = QUESTION_ID + "/deleteDownvote";
public static final String QUESTION_ANSWERS = BASE_PATH + "/{questionId}/answers";
public static final String QUESTION_RATE = QUESTION_ID + "/rate";
public static final String QUESTION_DIFFICULTY_VOTE = QUESTION_ID + "/vote-difficulty";
}

public static class AnswerEndpoints {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public ResponseEntity<GenericApiResponse<Map<String, Object>>> searchQuestions(
HttpStatus.OK);
}

@PostMapping(value = EndpointConstants.QuestionEndpoints.QUESTION_RATE)
@PostMapping(value = EndpointConstants.QuestionEndpoints.QUESTION_DIFFICULTY_VOTE)
public ResponseEntity<GenericApiResponse<QuestionRateResponseDto>> rateQuestion(
@PathVariable(value = "id") Long id,
@RequestBody DifficultyLevelRequestDto dto) {
Expand Down

0 comments on commit b0edc4b

Please sign in to comment.