additional TODOs

This commit is contained in:
2026-04-02 13:58:51 -04:00
parent 92db27edc4
commit 6d9c3c9a40

View File

@@ -17,11 +17,12 @@ public static class RtcEndpoints
await rtcCallService.WriteOfferAsync(request.ChannelId, request.Username, request.Sdp); await rtcCallService.WriteOfferAsync(request.ChannelId, request.Username, request.Sdp);
return Results.Ok(); return Results.Ok();
}); });
//TODO: Add call for if channelId has active call returning boolean value
app.MapGet("/api/rtc/offer/{channelId}", async (string channelId, RtcCallService rtcCallService) => app.MapGet("/api/rtc/offer/{channelId}", async (string channelId, RtcCallService rtcCallService) =>
{ {
var offer = await rtcCallService.GetOfferAsync(channelId); var offer = await rtcCallService.GetOfferAsync(channelId);
return offer is null ? Results.NotFound() : Results.Ok(offer); return offer is null ? Results.NotFound() : Results.Ok(offer);
//TODO: Needs to include offer data as JSON
}); });
app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) => app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) =>