SyntaxFix
Write A Post
Hire A Developer
Questions
I've noticed that I forgot the "slash" in the beginning of the Route as below and I was getting same error :
Wrong :
app.get('api/courses', (req, res) => { ... } )
Correct :
app.get('/api/courses', (req, res) => { ... } )