Hi,I am having some trouble understanding a put request via axios.On my server side I have:(Eventually this will then query mongoDB to update the todo note to complete).app.put('/todos/:id', (req, res) => { console.log(req.params); res.send(req.params); }); On my client side I have:HTML (using handlebars. this._id is a unique id for 'this' note)
No comments:
Post a Comment