fixeded the hardcoded values AGAIN

This commit is contained in:
2026-04-04 16:35:23 -04:00
parent 3f27c94032
commit 3aec6e23b2

View File

@@ -47,15 +47,17 @@ public static class RtcEndpoints
});
// Store a new SDP answer for the specified channel call.
app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) =>
app.MapPost("/api/rtc/answer", async (RtcOffer request, RtcCallService rtcCallService) =>
{
await rtcCallService.WriteAnswerAsync(
request.ChannelId,
new RtcSessionDescription
{
Type = "answer",
Sdp = request.Sdp
});
await rtcCallService.WriteAnswerAsync(request.ChannelId, request.SessionDescription);
//DON'T FUCKING HARDCODE STRINGS INTO API REQUESTS
// await rtcCallService.WriteAnswerAsync(
// request.ChannelId,
// new RtcSessionDescription
// {
// Type = "answer",
// Sdp = request.Sdp
// });
RtcNotificationService.Broadcast(new RtcNotificationMessage
{