Skip to content

Commit

Permalink
set route prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeleedev committed Oct 20, 2023
1 parent 809fd53 commit 9168cd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
app.UseSwaggerUI(options => {
options.SwaggerEndpoint("/swagger/v1/swagger.json", "v1");
options.RoutePrefix = string.Empty;
});
}

app.UseHttpsRedirection();
Expand Down

0 comments on commit 9168cd3

Please sign in to comment.