feat: Send files to response
parent
9268d90979
commit
ef7355bb7d
|
@ -37,7 +37,7 @@ export default class PackAPI {
|
|||
const streams = foundPack.files.map((file) => fs.createReadStream(file));
|
||||
|
||||
// Send the files to the client...
|
||||
new multistream(streams).pipe(process.stdout);
|
||||
new multistream(streams).pipe(res);
|
||||
console.log("files sent");
|
||||
return res.status(200).json({
|
||||
message: "ok",
|
||||
|
|
Loading…
Reference in New Issue