Swagger index prepends configured baseurl

pull/2988/head
Austin Jackson 6 years ago
parent 4cb6533cfb
commit ba1e96e5c0
No known key found for this signature in database
GPG Key ID: 0FC6E6CE7B9D863B

@ -217,7 +217,14 @@ namespace Ombi
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
if (settings.BaseUrl.HasValue())
{
c.SwaggerEndpoint(settings.BaseUrl + "/swagger/v1/swagger.json", "My API V1");
}
else
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
}
});
app.UseMvc(routes =>

Loading…
Cancel
Save