李昊 4 年之前
父节点
当前提交
f15141f17e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gx_api/GxPress/Api/GxPress.Api/Startup.cs

+ 2 - 2
gx_api/GxPress/Api/GxPress.Api/Startup.cs

@@ -122,13 +122,13 @@ namespace GxPress.Api
             {
                 FileProvider = new PhysicalFileProvider(
             Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
-                RequestPath = "/MyImages"
+                RequestPath = "/wwwroot"
             });
             app.UseDirectoryBrowser(new DirectoryBrowserOptions
             {
                 FileProvider = new PhysicalFileProvider(
             Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
-                RequestPath = "/MyImages"
+                RequestPath = "/wwwroot"
             });
             app.UseCors("AllowAny");
             app.UseSwashbuckle();