test ci
continuous-integration/drone/push Build is failing Details

pull/10/head
David D'ALMEIDA 1 year ago
parent ce99685034
commit 428e6c8565

@ -192,11 +192,9 @@ public class AppBootstrap(IConfiguration configuration)
app.MapSwagger(); app.MapSwagger();
app.UseSwaggerUI(options => app.UseSwaggerUI(options =>
{ {
if(Environment.GetEnvironmentVariable("TYPE") == "STUB")
options.RoutePrefix = "containers/HeartDev-heart_stub";
foreach (var description in apiVersionDescriptionProvider.ApiVersionDescriptions) foreach (var description in apiVersionDescriptionProvider.ApiVersionDescriptions)
{ {
options.SwaggerEndpoint($"/swagger/{description.GroupName}/swagger.json", options.SwaggerEndpoint($"./swagger/{description.GroupName}/swagger.json",
description.GroupName.ToUpperInvariant()); description.GroupName.ToUpperInvariant());
} }
}); });

Loading…
Cancel
Save