Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor : NotificationController 관련 API 엔드포인트 수정 #176

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading