This commit is contained in:
parent
2e77371316
commit
89a90099a7
8 changed files with 22 additions and 12 deletions
|
|
@ -123,12 +123,13 @@ var app = builder.Build();
|
|||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseCors();
|
||||
app.UseMiddleware<CombinedErrorHandlerAndLoggingMiddleware>();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
app.UseDefaultFiles();
|
||||
app.UseStaticFiles();
|
||||
app.MapControllers();
|
||||
app.UseMiddleware<ErrorHandlerMiddleware>();
|
||||
//app.UseMiddleware<ErrorHandlerMiddleware>();
|
||||
|
||||
// apply migrations
|
||||
await using var scope = app.Services.CreateAsyncScope();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue