Wednesday 17 February 2016

Any advice on keeping API routes clean?

For example for any internal error thrown by mongo, I feel like I'm constantly doing a generic response of status 500 + a generic simple message. Any tips of this? Also do you guys separate out mongo calls a lot to make certain ones reusable? Also tips on file structure? Thanks for the advice :)

Submitted February 18, 2016 at 02:56AM by -proof

No comments:

Post a Comment