ย้าย middleware ไปไว้หลัง https redirect เพื่อให้ใช้หน้า logn keycloak ใน wwwroot ได้
This commit is contained in:
parent
4f51ff380e
commit
90b4705234
12 changed files with 229 additions and 129 deletions
|
|
@ -111,7 +111,7 @@ var app = builder.Build();
|
|||
|
||||
app.MapHealthChecks("/health");
|
||||
|
||||
app.UseMiddleware<ErrorHandlerMiddleware>();
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseCors();
|
||||
app.UseAuthentication();
|
||||
|
|
@ -119,6 +119,7 @@ var app = builder.Build();
|
|||
app.UseDefaultFiles();
|
||||
app.UseStaticFiles();
|
||||
app.MapControllers();
|
||||
app.UseMiddleware<ErrorHandlerMiddleware>();
|
||||
|
||||
// apply migrations
|
||||
await using var scope = app.Services.CreateAsyncScope();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue