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

Reactjs – You cannot render routes

I have made one page in my project, it's App.tsx and it contains a lot of components. like this: import React from 'react'; import './App.css'; import Header from './components/Header'; import Underline from './components/Underline'; import BodyPart from './components/BodyPart'; import Footer from…

VIEW QUESTION
Back To Top
Search