Hope this will work 🔇🔇
continuous-integration/drone/push Build is passing Details

pull/4/head
Louis LABORIE 4 months ago
parent 4d6f3eee73
commit 1023151174

@ -59,19 +59,23 @@ builder.Services.AddRouting(options => options.LowercaseUrls = true);
var app = builder.Build(); var app = builder.Build();
// Configure the HTTP request pipeline. // Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment()) //if (app.Environment.IsDevelopment())
{ // {
app.UseSwagger(); // app.UseSwagger();
app.UseSwaggerUI(c => // app.UseSwaggerUI(c =>
{ // {
c.SwaggerEndpoint("/swagger/v1/swagger.json", "Optifit API v1"); // c.SwaggerEndpoint("/swagger/v1/swagger.json", "Optifit API v1");
c.RoutePrefix = string.Empty; // Serve Swagger UI at the app's root // c.RoutePrefix = string.Empty; // Serve Swagger UI at the app's root
}); // });
app.UseHttpsRedirection(); // app.UseHttpsRedirection();
} //}
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(); app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "Optifit API v1");
c.RoutePrefix = string.Empty; // Serve Swagger UI at the app's root
});
app.UseAuthorization(); app.UseAuthorization();
app.MapControllers(); app.MapControllers();
app.Run(); app.Run();
Loading…
Cancel
Save