summary refs log tree commit diff
path: root/MxApiExtensions/Program.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-01 12:34:30 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-01 12:34:30 +0100
commit0b662d36de30c4bdd3d9be97d08ace8d4d7be588 (patch)
tree475e4ea94cb5179236614bf5052d3164d1f2ff3b /MxApiExtensions/Program.cs
parentAdd more code (diff)
downloadMxApiExtensions-0b662d36de30c4bdd3d9be97d08ace8d4d7be588.tar.xz
Reformat
Diffstat (limited to 'MxApiExtensions/Program.cs')
-rw-r--r--MxApiExtensions/Program.cs12
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();