diff --git a/src/Infrastructure/WebAPI/Startup.cs b/src/Infrastructure/WebAPI/Startup.cs index 2459702e..be6fb731 100644 --- a/src/Infrastructure/WebAPI/Startup.cs +++ b/src/Infrastructure/WebAPI/Startup.cs @@ -41,13 +41,15 @@ public void ConfigureServices(IServiceCollection services) /// 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