2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00
This commit is contained in:
2024-10-12 13:36:56 +03:00
parent 264c1e1cd8
commit b57352b013
6 changed files with 132 additions and 104 deletions

View File

@ -31,18 +31,18 @@ var webSocketOptions = new WebSocketOptions()
app.UseWebSockets(webSocketOptions);
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
//// Configure the HTTP request pipeline.
//if (app.Environment.IsDevelopment())
//{
// app.UseSwagger();
// app.UseSwaggerUI();
//}
app.UseHttpsRedirection();
//app.UseHttpsRedirection();
app.UseAuthorization();
//app.UseAuthorization();
app.MapControllers();
//app.MapControllers();
await Warehouse.Put("sys", new MemoryStore());