I have successfully set up a public folder directory using express and node.
For instance, this code works perfectly -
var testImage = new Image();
testImage.src = '/images/png/avatar.png';
However, I need to access several images stored inside the png folder.
Is there a way for me to achieve something like this?
var imageFolder = new Folder();
var imageList = [];
imageFolder.src = '/images/png';
for(var image in imageFolder){
imageList.push(imageFolder[image])
}