Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios post data vue js

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
router.post('/new/post', (req, res) => {
  res.json(console.log("this is working" + ' ' + req.body.name));
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #axios #post #data #vue #js
ADD COMMENT
Topic
Name
8+3 =