Sunday 14 February 2016

Help with routes for a newb

I'm using node, express, mysql, and handlebars to set up a simple REST API. My API calls all work (/api/accounts, /api/accounts/:id, etc.). How do I set it up so that I can see the list of accounts when I visit localhost:3000/accounts?Code can be found at: http://ift.tt/1RD0pob in advance.

Submitted February 14, 2016 at 06:11PM by learnUtheweb4muchwin

No comments:

Post a Comment