Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/Backend/VanDaemon.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@
}

// Configure the HTTP request pipeline
if (app.Environment.IsDevelopment())
// Enable Swagger in all environments for API documentation access
app.UseSwagger();
app.UseSwaggerUI(c =>
{
app.UseSwagger();
app.UseSwaggerUI();
}
c.SwaggerEndpoint("/swagger/v1/swagger.json", "VanDaemon API v1");
c.RoutePrefix = "swagger"; // Explicitly set the route prefix
});

app.UseCors("AllowAll");
app.UseAuthorization();
Expand Down
Loading