File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
backend/src/main/java/com/deliveranything/domain/notification/controller Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1313import io .swagger .v3 .oas .annotations .tags .Tag ;
1414import java .util .List ;
1515import lombok .RequiredArgsConstructor ;
16+ import org .springframework .http .MediaType ;
1617import org .springframework .http .ResponseEntity ;
1718import org .springframework .security .core .annotation .AuthenticationPrincipal ;
1819import org .springframework .web .bind .annotation .GetMapping ;
@@ -34,7 +35,7 @@ public class NotificationController {
3435 private final EmitterRepository emitterRepository ;
3536
3637 @ Operation (summary = "SSE 구독" , description = "SSE를 통해 실시간 알림을 구독합니다. 각 기기별로 고유한 deviceId를 헤더(X-Device-ID)에 담아 요청해야 합니다." )
37- @ GetMapping ("/stream" )
38+ @ GetMapping (value = "/stream" , produces = MediaType . TEXT_EVENT_STREAM_VALUE )
3839 public SseEmitter subscribe (
3940 @ Parameter (description = "구독하는 기기의 고유 ID" , required = true , in = ParameterIn .HEADER )
4041 @ RequestHeader ("X-Device-ID" ) String deviceId ,
You can’t perform that action at this time.
0 commit comments