Skip to content
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 @@ -4,6 +4,7 @@
import com.umc.yeogi_gal_lae.api.notification.service.NotificationService;
import com.umc.yeogi_gal_lae.api.notification.domain.NotificationType;
import com.umc.yeogi_gal_lae.api.tripPlan.types.TripPlanType;
import com.umc.yeogi_gal_lae.api.user.domain.User;
import com.umc.yeogi_gal_lae.api.vote.AuthenticatedUserUtils;
import com.umc.yeogi_gal_lae.global.common.response.Response;
import com.umc.yeogi_gal_lae.global.success.SuccessCode;
Expand Down Expand Up @@ -59,6 +60,10 @@ public ResponseEntity<Response<Void>> createEndNotification(
*/
@GetMapping
public ResponseEntity<Response<List<NotificationDto>>> getAllNotifications() {

//로그인 없을시 에러냄
String userEmail = AuthenticatedUserUtils.getAuthenticatedUserEmail();

List<NotificationDto> notifications = notificationService.getAllNotifications();
return ResponseEntity.ok(Response.of(SuccessCode.NOTIFICATION_FETCH_OK, notifications));
}
Expand Down