Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xhaguatende committed Jun 14, 2024
1 parent bb65994 commit 717b926
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ApiDemo.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,8 @@

app.UseExceptionHandler();

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

app.UseHsts();

Expand Down

0 comments on commit 717b926

Please sign in to comment.