websockets-client/WebSocketsChatApi/Program.cs
2025-03-14 16:01:14 +03:00

12 lines
240 B
C#

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddControllers();
var app = builder.Build();
app.UseWebSockets();
app.MapControllers();
app.UseHttpsRedirection();
app.Run();