add ExceptionHandlingMiddleware

This commit is contained in:
Developer 02
2025-08-03 09:27:19 +02:00
parent 2bdc8ebafd
commit 1b9dac93a5
3 changed files with 90 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
using DigitalData.ActiveDirectory.API.Middleware;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
@@ -9,6 +11,8 @@ builder.Services.AddSwaggerGen();
var app = builder.Build();
app.UseMiddleware<ExceptionHandlingMiddleware>();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{