d
This commit is contained in:
parent
88cc43ec0e
commit
5ac1bdc673
@ -283,13 +283,13 @@ namespace YD_XinWei.Api
|
|||||||
//配置HttpContext
|
//配置HttpContext
|
||||||
app.UseStaticHttpContext();
|
app.UseStaticHttpContext();
|
||||||
|
|
||||||
app.UseSwagger();
|
//app.UseSwagger();
|
||||||
app.UseSwaggerUI(c =>
|
//app.UseSwaggerUI(c =>
|
||||||
{
|
//{
|
||||||
//2个下拉框选项 选择对应的文档
|
// //2个下拉框选项 选择对应的文档
|
||||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_XinWei.Api");
|
// c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_XinWei.Api");
|
||||||
c.RoutePrefix = "";
|
// c.RoutePrefix = "";
|
||||||
});
|
//});
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
app.UseCors();
|
app.UseCors();
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user