This commit is contained in:
Халимов Рустам
2026-03-30 23:57:34 +03:00
parent d3f1e3f361
commit f1f8f6e012
27 changed files with 88 additions and 142 deletions
@@ -10,7 +10,6 @@
<ProjectReference Include="..\..\Contracts\Settings\Knot.Contracts.Settings.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Carter" Version="10.0.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0-preview.1.25120.3" />
</ItemGroup>
</Project>
@@ -1,7 +1,6 @@
using Carter;
using MediatR;
using Knot.Shared.Kernel;
using Knot.Modules.WebRtc.Application.WebRtc.Queries;
using Knot.Shared.Kernel;
using MediatR;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
@@ -11,9 +10,9 @@ namespace Knot.Modules.WebRtc.Presentation.Endpoints;
/// <summary>
/// Endpoints for WebRTC signaling and ICE configuration
/// </summary>
public sealed class WebRtcEndpoints : ICarterModule
public static class WebRtcEndpoints
{
public void AddRoutes(IEndpointRouteBuilder app)
public static void MapWebRtcEndpoints(this WebApplication app)
{
var group = app.MapGroup("api/webrtc")
.RequireAuthorization();