feat : ajout page monitoring
This commit is contained in:
11
server/api/upload.post.ts
Normal file
11
server/api/upload.post.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
const req = event.node.req
|
||||
|
||||
let received = 0
|
||||
|
||||
for await (const chunk of req) {
|
||||
received += chunk.length
|
||||
}
|
||||
|
||||
return { received }
|
||||
})
|
||||
Reference in New Issue
Block a user