Skip to content

Commit

Permalink
always enable Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jan 20, 2024
1 parent 53254ec commit 1fa5e8d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions TechStacks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,12 @@

var app = builder.Build();

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

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseMigrationsEndPoint();
app.UseSwagger();
app.UseSwaggerUI();
}
else
{
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
Expand Down

0 comments on commit 1fa5e8d

Please sign in to comment.