DEV Community

Discussion on: Step by step React, NodejS and MySQL Simple Full Stack Application 2018 (part: 5)

Collapse
 
alivadjid profile image
alivadjid

Good day!
Try at html-routes.js file change line: app.get('/', function(req, res)
to
app.get('/users', function(req, res)
and then project must work.
I think that connected with express method app.get. Which mounted middleware function on the /users.
And than App.js on client folder refer to it.
If I'm wrong, please correct me =)

Collapse
 
xiaohan_du profile image
Xiaohan Du

Hi, thanks for the reply, changed to app.get('/users', function(req, res) but still no luck