Return static files from the server
Is there a possibility to return files from the server app using
If so, how would you include the assets folder in the output directory and reference it from the code?
The functionality i want to achieve is to return an image based on some db calculated data. Its a small set of images, so a whole external image storage seems like overkill as its supposed to be around 6 images.
res.sendFile()?If so, how would you include the assets folder in the output directory and reference it from the code?
The functionality i want to achieve is to return an image based on some db calculated data. Its a small set of images, so a whole external image storage seems like overkill as its supposed to be around 6 images.