middleware

This commit is contained in:
2026-02-08 20:28:46 +01:00
parent 70a1cf1544
commit 90c127ddb3
3 changed files with 52 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
using AipsCore.Infrastructure.DI;
using AipsWebApi.Middleware;
using DotNetEnv;
Env.Load();
@@ -21,6 +22,8 @@ if (app.Environment.IsDevelopment())
}
app.UseMiddleware<ExceptionHandlingMiddleware>();
app.UseAuthorization();
app.MapControllers();