Skip to content

Commit

Permalink
Remove environment check (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
zysim authored Aug 20, 2023
1 parent 70a6c9e commit 9d8593e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions LeaderboardBackend/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,8 @@
WebApplication app = builder.Build();

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

// Database creation / migration
using (IServiceScope scope = app.Services.CreateScope())
Expand Down

0 comments on commit 9d8593e

Please sign in to comment.