my application is a simple ASP.NET MVC that reads the paths of some pictures from a JSON file, and display them into a web page.
The display of the pictures is OK as long as I am hosting them under wwwroot.
My problem is : The JSON and the pictures are dynamic (periodically , not "very" dynamic therefore no need for special event treatment or callbacks or whatsoverver ), they are generated with some scripts and I need to replace them manually each time I have a new version of them.
I had the idea of having a folder in my file system, set an environment variable with its path, read that variable with the C# application and give then the paths to the HTML .
That has successfully solved the problem of the JSON file, I can read it from the correct location then deserialize it, but I cannot find a way for the images.
Is there any way to Map a Folder - with dynamic content - into the wwwroot ? or is it possible to use that folder directly as a web root folder ?