fix issue #I3SKUV 可以正常在swagger中使用mini profiler

This commit is contained in:
yubaolee
2021-05-26 00:09:31 +08:00
parent 64d55568d1
commit c559f33037
3 changed files with 9 additions and 4 deletions

View File

@@ -203,6 +203,8 @@ namespace OpenAuth.WebApi
app.UseDeveloperExceptionPage();
}
app.UseMiniProfiler();
//可以访问根目录下面的静态文件
var staticfile = new StaticFileOptions
{
@@ -232,8 +234,6 @@ namespace OpenAuth.WebApi
//配置ServiceProvider
AutofacContainerModule.ConfigServiceProvider(app.ApplicationServices);
app.UseMiniProfiler();
app.UseSwagger();
// Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.),