just to see
continuous-integration/drone/push Build is passing Details

pull/10/head
David D'ALMEIDA 1 year ago
parent 3849147b2d
commit d20f23478f

@ -197,8 +197,8 @@ public class AppBootstrap(IConfiguration configuration)
//In this case we set it to 'sample-app'. //In this case we set it to 'sample-app'.
var basePath = "containers/HeartDev-api"; var basePath = "containers/HeartDev-api";
var serverUrl = $"{httpReq.Scheme}://{httpReq.Headers["X-Forwarded-Host"]}/{basePath}"; var serverUrl = $"{httpReq.Scheme}://{httpReq.Headers["X-Forwarded-Host"]}/3{basePath}";
swagger.Servers = new List<OpenApiServer> { new() { Url = serverUrl }, new() { Url = $"{httpReq.Scheme}://{httpReq.Host.Value}" },new() { Url = $"{httpReq.Scheme}://{httpReq.Host.Value}/{basePath}" } }; swagger.Servers = new List<OpenApiServer> { new() { Url = serverUrl }, new() { Url = $"{httpReq.Scheme}://1{httpReq.Host.Value}" },new() { Url = $"{httpReq.Scheme}://2{httpReq.Host.Value}/{basePath}" } };
//} //}
}); });
}); });

Loading…
Cancel
Save