Thursday, 10 May 2018

Tested with Postman, my APIs work, but is the code sensible?

Here's the server.js code, and here's the router.js code. I'm wondering if the code is easy to follow and makes sense. It already works when tested with Postman. I'm tryna hook up this back end with Angular, and so far, the first two routes (get all employees and register an employee) work from the Angular front, but the last two don't. Is there a better way to write the code?

Submitted May 10, 2018 at 08:16PM by ncubez

No comments:

Post a Comment