silverwolf-x's picture
download
raw
383 Bytes
export const config = {
api: {
bodyParser: false,
},
}
export default (req, res) => {
return new Promise((resolve) => {
if (!req.body) {
let buffer = ''
req.on('data', (chunk) => {
buffer += chunk
})
req.on('end', () => {
res.status(200).json(JSON.parse(Buffer.from(buffer).toString()))
resolve()
})
}
})
}

Xet Storage Details

Size:
383 Bytes
·
Xet hash:
1a37ed9c324aabcfd00f4b95a50c63cf8c3ab4621b34996b1908e0fb857eeac6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.