Skip to content

Commit

Permalink
Always offer swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
timia2109 committed Mar 19, 2024
1 parent a1a2a93 commit 4ed6968
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@

var app = builder.Build();

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

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

app.MapGet("/preview/{providerId}", async (string providerId, ScreenRepository repo) =>
{
Expand Down

0 comments on commit 4ed6968

Please sign in to comment.