修改BUG:swagger功能发布后由于增加了PathBase导致工作不正常

This commit is contained in:
Argo-MacBookPro 2018-10-26 09:53:00 +08:00
parent e4e4d3bd8d
commit 11c2894f59
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -15,6 +15,7 @@
"MaxFileCount": 1
}
},
"SwaggerPathBase": "",
"AllowOrigins": "http://localhost:49823",
"KeyPath": "..\\keys",
"DisableAutomaticKeyGeneration": false,

View File

@ -29,6 +29,7 @@
}
}
],
"SwaggerPathBase": "/BA",
"AllowOrigins": "http://localhost,http://10.15.63.218",
"KeyPath": "D:\\App\\Web-App\\keys",
"ApplicationName": "__bd__",