DEV Community

loading...

Discussion on: Node.js send JSON to local client

Collapse
binarydigit profile image
Liz Rodriguez Author

Annnnnd I have success! I realized I needed to do exactly what rhymes said and re-do my routing. I started my request on the client, then did the api call on the node server, and it responded. (I ended up using res.send(body) in my request function.)

Thanks for your help!!

Collapse
rhymes profile image
rhymes

no worries, glad it worked!