From 6d9c3c9a40400daf94b17cce06d9f58898d87095 Mon Sep 17 00:00:00 2001 From: Cody Larkin Date: Thu, 2 Apr 2026 13:58:51 -0400 Subject: [PATCH] additional TODOs --- RelayServer/Endpoints/RtcEndpoints.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RelayServer/Endpoints/RtcEndpoints.cs b/RelayServer/Endpoints/RtcEndpoints.cs index 0a74fc3..b72c04c 100644 --- a/RelayServer/Endpoints/RtcEndpoints.cs +++ b/RelayServer/Endpoints/RtcEndpoints.cs @@ -17,11 +17,12 @@ public static class RtcEndpoints await rtcCallService.WriteOfferAsync(request.ChannelId, request.Username, request.Sdp); 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) => { var offer = await rtcCallService.GetOfferAsync(channelId); 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) =>