DEV Community

Discussion on: Problems with Node.js

Collapse
 
kaleman15 profile image
Kevin Alemán • Edited

As others mentioned, use backtics in order to allow string interpolation.
And, regarding your server, it's indeed listening, but, it'll only respond to requests when you hit localhost:5000/api/sessions since you don't have a default handler for / route.

Collapse
 
liu550 profile image
liu550

Thanks!