You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for anyone who still want to try this, i managed to make it work, the method is GET and json you just need to make the payload into correct json format without "client_req ="
then install body parser from NPM, it's seem the parser from node express doesn't work in this
goes to app.js, make constanta of bodyParser from NPM, change the bodyparser from express, just comment it
use it like this "app.use(bodyParser.json());"
then goes to routes/index.js
on the export.index
change some codes from req.query.client_req to just 'req.body'
then remove the json.parse
change var data to just use 'req.body'
how to use ?for example use curl to post the json message
have any demo?
The text was updated successfully, but these errors were encountered: