Replace UnsupportedOperationException with HTTP 202 ACCEPTED response in sendChatMessages.

This commit is contained in:
akastijn 2026-07-18 21:02:11 +02:00
parent 321e736d4b
commit 9ebd420874

View File

@ -6,6 +6,7 @@ import com.alttd.altitudeweb.model.ServerStateDto;
import com.alttd.altitudeweb.services.chat.ChatService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;
@ -22,7 +23,7 @@ public class ChatController implements ChatApi {
public ResponseEntity<Void> sendChatMessages(List<ChatMessageDto> chatMessageDtoList) {
//TODO [Admin] [2026-07-18]: Implement handling chat messages (push to listeners)
chatMessageDtoList.stream().map(ChatMessageMapper::fromDto).forEach(chatService::addChatMessage);
throw new UnsupportedOperationException("Not implemented");
return new ResponseEntity<>(HttpStatus.ACCEPTED);
}
@Override