fixed endpoint data

This commit is contained in:
2026-04-03 19:44:07 -04:00
parent ebda006010
commit 941dcc16d9
2 changed files with 6 additions and 7 deletions

View File

@@ -47,9 +47,9 @@ 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, request.OfferUser, request.AnswerUser, request.Sdp);
await rtcCallService.WriteAnswerAsync(request.ChannelId, request.SessionDescription);
return Results.Ok();
});