From 5fea499da4a2ddaf894e7aa851767889a45b0af6 Mon Sep 17 00:00:00 2001 From: Xander Sigler Date: Wed, 26 Jan 2022 23:14:36 -0800 Subject: [PATCH] Include swagger in release build --- AOC2021/Startup.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AOC2021/Startup.cs b/AOC2021/Startup.cs index 708f18b..3fbc8d8 100644 --- a/AOC2021/Startup.cs +++ b/AOC2021/Startup.cs @@ -45,11 +45,10 @@ namespace AOC2021 if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); - app.UseSwagger(); - app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "AOC2021 v1")); } - app.UseHttpsRedirection(); + app.UseSwagger(); + app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "AOC2021 v1")); app.UseRouting();