Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeleedev committed Oct 20, 2023
1 parent 02a6bcd commit 9c772c9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@
var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI(options => {
options.SwaggerEndpoint("/swagger/v1/swagger.json", "v1");
options.RoutePrefix = string.Empty;
});
}
app.UseSwagger();
app.UseSwaggerUI(options => {
options.SwaggerEndpoint("/swagger/v1/swagger.json", "v1");
});

app.UseHttpsRedirection();

Expand Down

0 comments on commit 9c772c9

Please sign in to comment.