Added room functionality
This commit is contained in:
@@ -8,7 +8,7 @@ services.AddControllers();
|
||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||
services.AddEndpointsApiExplorer();
|
||||
services.AddSwaggerGen();
|
||||
services.AddScoped<IWebsocketManager, WebsocketManager>();
|
||||
services.AddScoped<IRoomManager, RoomManager>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
@@ -26,6 +26,13 @@ var webSocketOptions = new WebSocketOptions()
|
||||
|
||||
app.UseWebSockets(webSocketOptions);
|
||||
|
||||
app.UseCors(policyBuilder =>
|
||||
{
|
||||
policyBuilder.AllowAnyOrigin();
|
||||
policyBuilder.AllowAnyMethod();
|
||||
policyBuilder.AllowAnyHeader();
|
||||
});
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseAuthorization();
|
||||
app.MapControllers();
|
||||
|
||||
Reference in New Issue
Block a user