fix(client chunk api route): follow best practices
This commit is contained in:
@@ -60,5 +60,5 @@ export default defineEventHandler(async (h3) => {
|
|||||||
|
|
||||||
const gameReadStream = fs.createReadStream(gameFile, { start, end: end - 1 }); // end needs to be offset by 1
|
const gameReadStream = fs.createReadStream(gameFile, { start, end: end - 1 }); // end needs to be offset by 1
|
||||||
|
|
||||||
return sendStream(h3, gameReadStream);
|
return gameReadStream;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user