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();