李昊 il y a 4 ans
Parent
commit
f15141f17e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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();