mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(directory): 🐛 fix swagger gen to nest under directory sub-path
This commit is contained in:
parent
2bccb126d9
commit
bfce624041
1 changed files with 2 additions and 2 deletions
|
|
@ -38,9 +38,9 @@ public static void UseSwagger(this IApplicationBuilder app)
|
|||
o.PreSerializeFilters.Add((swaggerDoc, httpReq) => swaggerDoc.Servers = new List<OpenApiServer>
|
||||
{
|
||||
#if DEBUG
|
||||
new OpenApiServer {Url = $"{httpReq.Scheme}://{httpReq.Host.Value}/api"}
|
||||
new OpenApiServer {Url = $"{httpReq.Scheme}://{httpReq.Host.Value}/api/directory"}
|
||||
#else
|
||||
new OpenApiServer {Url = $"https://{httpReq.Host.Value}/api"}
|
||||
new OpenApiServer {Url = $"https://{httpReq.Host.Value}/api/directory"}
|
||||
#endif
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue