李昊 лет назад: 5
Родитель
Сommit
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();