Skip to content

Commit

Permalink
Add swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed May 29, 2024
1 parent 7b148be commit a888b47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ReplayBrowser/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ public void ConfigureServices(IServiceCollection services)
});

services.AddHttpLogging(o => { });

services.AddSwaggerGen();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Expand Down Expand Up @@ -232,8 +234,12 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseAuthorization();
app.UseAntiforgery();

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

app.UseEndpoints(endpoints =>
{
endpoints.MapSwagger();
endpoints.MapControllers();
endpoints.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
Expand Down

0 comments on commit a888b47

Please sign in to comment.