1 files changed, 5 insertions, 7 deletions
diff --git a/MxApiExtensions/Program.cs b/MxApiExtensions/Program.cs
index b08061e..b44129e 100644
--- a/MxApiExtensions/Program.cs
+++ b/MxApiExtensions/Program.cs
@@ -71,17 +71,15 @@ var app = builder.Build();
// Configure the HTTP request pipeline.
// if (app.Environment.IsDevelopment()) {
- app.UseSwagger();
- app.UseSwaggerUI();
+app.UseSwagger();
+app.UseSwaggerUI();
// }
// app.UseHttpsRedirection();
app.UseCors("Open");
-app.UseExceptionHandler(exceptionHandlerApp =>
-{
- exceptionHandlerApp.Run(async context =>
- {
+app.UseExceptionHandler(exceptionHandlerApp => {
+ exceptionHandlerApp.Run(async context => {
var exceptionHandlerPathFeature =
context.Features.Get<IExceptionHandlerPathFeature>();
@@ -110,4 +108,4 @@ app.UseExceptionHandler(exceptionHandlerApp =>
app.MapControllers();
-app.Run();
\ No newline at end of file
+app.Run();
|