Add Global Exception Handling

This commit is contained in:
lumijiez
2025-06-10 23:30:58 +03:00
parent b8ddee390a
commit db61171ada
8 changed files with 102 additions and 7 deletions

View File

@@ -140,13 +140,13 @@ public static class Startup
}
}
app.UseGlobalExceptionHandling();
app.UseRequestTiming();
if (env.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
app.UseDeveloperExceptionPage();
}
else
{