62,046
社区成员
发帖
与我相关
我的任务
分享
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "WebApplication11 v1");
c.RoutePrefix = "swagger";
});
}