Generates a function to send files on the application response.
Example: Basic usage
// Let's say this is inside an Express middleware. // Get the function constsend = sendFile(pathUtils); send({ res, filepath:'some-file.html', next }); // If your app is on "/app/index.js", this will send "/app/some-file.html".
Generates a function to send files on the application response.
Example: Basic usage