mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Swagger index prepends configured baseurl
This commit is contained in:
parent
4cb6533cfb
commit
ba1e96e5c0
1 changed files with 8 additions and 1 deletions
9
src/Ombi/Startup.cs
Normal file → Executable file
9
src/Ombi/Startup.cs
Normal file → Executable file
|
@ -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…
Add table
Add a link
Reference in a new issue