的
This commit is contained in:
parent
3a8a6a0739
commit
a02788708d
@ -285,13 +285,14 @@ 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