fix(client chunk api route): follow best practices

This commit is contained in:
DecDuck
2024-12-09 17:04:51 +11:00
parent 25fc957092
commit 54c5d55da7

View File

@ -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
return sendStream(h3, gameReadStream);
return gameReadStream;
});