We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I parse the JSON from a POST request ? The code below isn't working
melonpan.post("/user" , (req, ctx) => { let user_request = req.json().then((data) => { console.log(data); }); // console.log(user_request); return ctx.json({status: "ok"}); });
The text was updated successfully, but these errors were encountered:
i've used npm body-parser . but it is not working . is the solution for this ?
ReadableStream { [Symbol(state)]: 4, [Symbol(reader)]: undefined, [Symbol(storedError)]: undefined, [Symbol(disturbed)]: false, [Symbol(readableStreamController)]: null, [Symbol(bunNativeType)]: 4, [Symbol(highWaterMark)]: undefined, [Symbol(underlyingSource)]: undefined, [Symbol(start)]: [Function], cancel: [Function: cancel], getReader: [Function: getReader], pipeTo: [Function: pipeTo], pipeThrough: [Function: pipeThrough], tee: [Function: tee], values: [Function: values], [Symbol(Symbol.asyncIterator)]: [Function: lazyAsyncIterator] }
Sorry, something went wrong.
No branches or pull requests
How can I parse the JSON from a POST request ?
The code below isn't working
The text was updated successfully, but these errors were encountered: