skip to Main Content

Javascript – Cannot POST / – URL with parameters

I'm trying to post something, but always get error. articlesRouter.post('articles/:target', async (req, res) => { const target = req.params.target.replaceAll("_", " ") const article = await Article.findOne({where: {title: target}}) if (article) { const author = req.body.commentAuthor const text = req.body.commentText await…

VIEW QUESTION
Back To Top
Search