node.js - Get Data from POST request on client side -


i made form post request react front end. in express route handle it, , send data browser, such:

app.post("/api/fetchuser", async (req, res) => {   // doing stuff here    res.send(req.body.user); }); 

my question is: how can data post request route client side? previously, did axios.get(...) retrieve data on app.get(...) route in similar fashion, however, post route. how can solve issue?

just axios.post request. see performing post request section of axios documentation.

edit: yes can retrieve data post request. don't have post data server while performing request.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -