fix(directory): 🐛 fix swagger gen to nest under directory sub-path

This commit is contained in:
Collin M. Barrett 2020-10-03 17:19:08 -05:00
parent 2bccb126d9
commit bfce624041

View file

@ -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
});
});