Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9285cedfa9 | |||
| 29574f4df0 | |||
| 343874551a | |||
| b4a48c9cbf |
@@ -8,7 +8,7 @@ public sealed class OpenApiBearerSecuritySchemeTransformer : IOpenApiDocumentTra
|
|||||||
{
|
{
|
||||||
Type = SecuritySchemeType.Http,
|
Type = SecuritySchemeType.Http,
|
||||||
Scheme = "bearer",
|
Scheme = "bearer",
|
||||||
Description = "JWT Authorization header using the Bearer scheme. Example: \"Bearer {token}\"",
|
Description = "JWT Authorization header using the Bearer scheme",
|
||||||
};
|
};
|
||||||
|
|
||||||
document.AddComponent("Bearer", bearerScheme);
|
document.AddComponent("Bearer", bearerScheme);
|
||||||
|
|||||||
@@ -69,8 +69,10 @@ public static class Api
|
|||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(urls))
|
if (!string.IsNullOrWhiteSpace(urls))
|
||||||
{
|
{
|
||||||
string firstUrl = urls.Split(';').FirstOrDefault(s => s.Contains("http://"))!
|
string firstUrl = urls.Split(';').FirstOrDefault(s => s.Contains("http://"))!
|
||||||
.Replace("*", "localhost").Replace("+", "localhost");
|
.Replace("0.0.0.0", "localhost")
|
||||||
|
.Replace("*", "localhost")
|
||||||
|
.Replace("+", "localhost");
|
||||||
|
|
||||||
healthUrl = $"{firstUrl.TrimEnd('/')}/health";
|
healthUrl = $"{firstUrl.TrimEnd('/')}/health";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user