mirror of
https://github.com/bitwarden/server.git
synced 2025-04-15 01:58:14 -05:00
remove protocol from host
This commit is contained in:
parent
bae1884630
commit
3c9b2ef2f5
@ -197,8 +197,9 @@ namespace Bit.Api
|
||||
app.UseSwagger(config =>
|
||||
{
|
||||
config.RouteTemplate = "specs/{documentName}/swagger.json";
|
||||
config.PreSerializeFilters.Add(
|
||||
(swaggerDoc, httpReq) => swaggerDoc.Host = globalSettings.BaseServiceUri.Api);
|
||||
var host = globalSettings.BaseServiceUri.Api.Replace("https://", string.Empty)
|
||||
.Replace("http://", string.Empty);
|
||||
config.PreSerializeFilters.Add((swaggerDoc, httpReq) => swaggerDoc.Host = host);
|
||||
});
|
||||
app.UseSwaggerUI(config =>
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user