Skip to content

Commit

Permalink
refactor : NotificationController 관련 API 엔드포인트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rladmstn committed Nov 15, 2024
1 parent a01315a commit 552485e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/notification")
@RequestMapping("/api/notifications")
@Tag(name = "알림 API", description = "알림 관련 API")
public class NotificationController {
private final NotificationService notificationService;
Expand All @@ -55,13 +55,13 @@ public void updateIsRead(@AuthedUser User user) {
notificationService.updateIsRead(user);
}

@GetMapping(value = "/setting")
@GetMapping(value = "/settings")
@Operation(summary = "알림 설정 목록 조회 API", description = "유저가 가입한 그룹들에 대해 알림 설정 목록을 조회하는 API")
public ResponseEntity<List<GetNotificationSettingResponse>> getNotificationSettings(@AuthedUser User user) {
return ResponseEntity.ok().body(notificationSettingService.getNotificationSettings(user));
}

@PatchMapping(value = "/setting")
@PatchMapping(value = "/settings")
@Operation(summary = "알림 설정 수정 API")
public ResponseEntity<Void> updateNotificationSettings(@AuthedUser User user, @Valid @RequestBody
EditNotificationSettingRequest request, Errors errors) {
Expand Down

0 comments on commit 552485e

Please sign in to comment.