李昊 %!s(int64=5) %!d(string=hai) anos
pai
achega
81579e7955
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      gx_api/GxPress/Api/GxPress.Api/Startup.cs

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

@@ -127,7 +127,8 @@ namespace GxPress.Api
             {
                 FileProvider = new PhysicalFileProvider(
             Path.Combine(Directory.GetCurrentDirectory(), "wwwroot")),
-                RequestPath = "/MyImages"
+                RequestPath = "/MyImages",
+                ContentTypeProvider = provider
             });
             app.UseDirectoryBrowser(new DirectoryBrowserOptions
             {