feat: Send files to response

master
ogomez-at-wiris 2022-02-24 15:21:57 +01:00
parent 9268d90979
commit ef7355bb7d
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default class PackAPI {
const streams = foundPack.files.map((file) => fs.createReadStream(file)); const streams = foundPack.files.map((file) => fs.createReadStream(file));
// Send the files to the client... // Send the files to the client...
new multistream(streams).pipe(process.stdout); new multistream(streams).pipe(res);
console.log("files sent"); console.log("files sent");
return res.status(200).json({ return res.status(200).json({
message: "ok", message: "ok",