const path = require('path');
<ROUTE_NAME>.get(
'/<API_RROUTE>',
(req, res) => {
const filePath = path.join(ROOT_PATH, 'FILENAME');
res.sendFile(filePath);
}
);
Created
August 8, 2023 06:34
-
-
Save rifayetuxbd/20b0fbe2399b9dce8097ed94c0709543 to your computer and use it in GitHub Desktop.
Send file from server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment