李昊 4 years ago
parent
commit
f15141f17e
1 changed files with 2 additions and 2 deletions
  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(
                 FileProvider = new PhysicalFileProvider(
             Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
             Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
-                RequestPath = "/MyImages"
+                RequestPath = "/wwwroot"
             });
             });
             app.UseDirectoryBrowser(new DirectoryBrowserOptions
             app.UseDirectoryBrowser(new DirectoryBrowserOptions
             {
             {
                 FileProvider = new PhysicalFileProvider(
                 FileProvider = new PhysicalFileProvider(
             Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
             Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
-                RequestPath = "/MyImages"
+                RequestPath = "/wwwroot"
             });
             });
             app.UseCors("AllowAny");
             app.UseCors("AllowAny");
             app.UseSwashbuckle();
             app.UseSwashbuckle();