This commit is contained in:
parent
e426228195
commit
83502815ad
@ -304,13 +304,14 @@ namespace YD_AllHeartRates.Api
|
||||
app.UseStaticHttpContext();
|
||||
app.UseMiddleware<JwtContextMiddleware>();
|
||||
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
//2个下拉框选项 选择对应的文档
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_AllHeartRates.Api");
|
||||
c.RoutePrefix = "";
|
||||
});
|
||||
//app.UseSwagger();
|
||||
//app.UseSwaggerUI(c =>
|
||||
//{
|
||||
// //2个下拉框选项 选择对应的文档
|
||||
// c.SwaggerEndpoint("/swagger/v1/swagger.json", "YD_AllHeartRates.Api");
|
||||
// c.RoutePrefix = "";
|
||||
//});
|
||||
|
||||
app.UseRouting();
|
||||
app.UseCors();
|
||||
app.UseAuthentication();
|
||||
|
Loading…
x
Reference in New Issue
Block a user