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