Correct route for swagger endpoint

This commit is contained in:
2025-09-28 17:28:16 +02:00
parent 24cf63f235
commit db74af9217

View File

@@ -120,7 +120,10 @@ app.UseSwagger(opts =>
opts.OpenApiVersion = OpenApiSpecVersion.OpenApi3_0;
opts.RouteTemplate = "swagger/{documentName}/swagger.json";
});
app.UseSwaggerUI();
app.UseSwaggerUI(opts =>
{
opts.SwaggerEndpoint("/swagger/v2/swagger.json", "v2");
});
app.UseHttpsRedirection();