Skip to content

Commit

Permalink
chore: uri 스네이크 케이스에서 권장사항인 하이픈으로 수정 #211
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbonai06 committed Sep 9, 2022
1 parent 34c026b commit 8966440
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public CommonResponse<AchievedChallengeListDTO> getAchievedListChallenge(
}

@ApiOperation(value = "완주한 돈길에 이자 지급하기")
@PatchMapping(value = "/interest_payment/{challengeId}", produces = "application/json; charset=utf-8")
@PatchMapping(value = "/interest-payment/{challengeId}", produces = "application/json; charset=utf-8")
public CommonResponse<AchievedChallengeDTO> patchInterestPayment(
@AuthenticationPrincipal User authUser,
@PathVariable Long challengeId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class NotificationController {
private final NotificationRepository notificationRepository;

@ApiOperation(value = "모든 유저에게 알림")
@PostMapping(value = "/all_user", produces = "application/json; charset=utf-8")
@PostMapping(produces = "application/json; charset=utf-8")
public CommonResponse<String> allSendNotification(
@RequestBody AllSendNotificationDTO allSendNotificationRequest,
@AuthenticationPrincipal User authUser) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ private void sundayValidation() {
nowCal.setTime(nowTimestamp);
DayOfWeek dayOfWeek = now.getDayOfWeek();
int value = dayOfWeek.getValue();
if (value == 8) { // test환경에선 접근이 안되는 8로 실환경에선 일요일인 7로 설정
if (value == 7) { // test환경에선 접근이 안되는 8로 실환경에선 일요일인 7로 설정
throw new ForbiddenException(ErrorCode.SUNDAY_ERROR.getErrorCode());
}
}
Expand Down

0 comments on commit 8966440

Please sign in to comment.