修改BUG:swagger功能发布后由于增加了PathBase导致工作不正常
This commit is contained in:
parent
e4e4d3bd8d
commit
11c2894f59
|
@ -143,7 +143,7 @@ namespace Bootstrap.Admin
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI(c =>
|
app.UseSwaggerUI(c =>
|
||||||
{
|
{
|
||||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "BootstrapAdmin API V1");
|
c.SwaggerEndpoint($"{Configuration["SwaggerPathBase"]}/swagger/v1/swagger.json", "BootstrapAdmin API V1");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
"MaxFileCount": 1
|
"MaxFileCount": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"SwaggerPathBase": "",
|
||||||
"AllowOrigins": "http://localhost:49823",
|
"AllowOrigins": "http://localhost:49823",
|
||||||
"KeyPath": "..\\keys",
|
"KeyPath": "..\\keys",
|
||||||
"DisableAutomaticKeyGeneration": false,
|
"DisableAutomaticKeyGeneration": false,
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"SwaggerPathBase": "/BA",
|
||||||
"AllowOrigins": "http://localhost,http://10.15.63.218",
|
"AllowOrigins": "http://localhost,http://10.15.63.218",
|
||||||
"KeyPath": "D:\\App\\Web-App\\keys",
|
"KeyPath": "D:\\App\\Web-App\\keys",
|
||||||
"ApplicationName": "__bd__",
|
"ApplicationName": "__bd__",
|
||||||
|
|
Loading…
Reference in New Issue