Skip to content

Commit

Permalink
Merge pull request #7 from EduardoRobles7/update-swagger-ui
Browse files Browse the repository at this point in the history
Enable Swagger UI
  • Loading branch information
erobles7 authored Dec 17, 2023
2 parents 533dc24 + e5ca9f9 commit 61b5d0d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/ExampleWebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ public static void Main(string[] args)
var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}

app.UseSwagger();
app.UseSwaggerUI();

app.UseHttpsRedirection();

app.UseAuthorization();
Expand Down

0 comments on commit 61b5d0d

Please sign in to comment.