diff --git a/Bootstrap.Admin/Startup.cs b/Bootstrap.Admin/Startup.cs index 8b1f6f40..028b29b6 100644 --- a/Bootstrap.Admin/Startup.cs +++ b/Bootstrap.Admin/Startup.cs @@ -143,7 +143,7 @@ namespace Bootstrap.Admin app.UseSwagger(); app.UseSwaggerUI(c => { - c.SwaggerEndpoint("/swagger/v1/swagger.json", "BootstrapAdmin API V1"); + c.SwaggerEndpoint($"{Configuration["SwaggerPathBase"]}/swagger/v1/swagger.json", "BootstrapAdmin API V1"); }); } } diff --git a/Bootstrap.Admin/appsettings.Development.json b/Bootstrap.Admin/appsettings.Development.json index 4cc5b29a..5ff31e11 100644 --- a/Bootstrap.Admin/appsettings.Development.json +++ b/Bootstrap.Admin/appsettings.Development.json @@ -15,6 +15,7 @@ "MaxFileCount": 1 } }, + "SwaggerPathBase": "", "AllowOrigins": "http://localhost:49823", "KeyPath": "..\\keys", "DisableAutomaticKeyGeneration": false, diff --git a/Bootstrap.Admin/appsettings.json b/Bootstrap.Admin/appsettings.json index 9ca0f324..d030e312 100644 --- a/Bootstrap.Admin/appsettings.json +++ b/Bootstrap.Admin/appsettings.json @@ -29,6 +29,7 @@ } } ], + "SwaggerPathBase": "/BA", "AllowOrigins": "http://localhost,http://10.15.63.218", "KeyPath": "D:\\App\\Web-App\\keys", "ApplicationName": "__bd__",