Skip to content

Commit

Permalink
Merge pull request #16 from eduardo-paes:development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
eduardo-paes authored Aug 30, 2023
2 parents af83e0d + 0869294 commit d963c04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Infrastructure/WebAPI/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ public void ConfigureServices(IServiceCollection services)
/// <param name="env"></param>
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
// Enable Swagger middleware for API documentation
app.UseSwagger();

if (env.IsDevelopment())
{
// Show detailed error page in development mode
app.UseDeveloperExceptionPage();

// Enable Swagger middleware for API documentation in development mode
app.UseSwagger();
// Enable Swagger UI in development mode
app.UseSwaggerUI();

// Show development mode message
Expand Down

0 comments on commit d963c04

Please sign in to comment.