mirror of
https://github.com/bitwarden/server.git
synced 2025-04-18 19:48:12 -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 =>
|
app.UseSwagger(config =>
|
||||||
{
|
{
|
||||||
config.RouteTemplate = "specs/{documentName}/swagger.json";
|
config.RouteTemplate = "specs/{documentName}/swagger.json";
|
||||||
config.PreSerializeFilters.Add(
|
var host = globalSettings.BaseServiceUri.Api.Replace("https://", string.Empty)
|
||||||
(swaggerDoc, httpReq) => swaggerDoc.Host = globalSettings.BaseServiceUri.Api);
|
.Replace("http://", string.Empty);
|
||||||
|
config.PreSerializeFilters.Add((swaggerDoc, httpReq) => swaggerDoc.Host = host);
|
||||||
});
|
});
|
||||||
app.UseSwaggerUI(config =>
|
app.UseSwaggerUI(config =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user