How to Build a Safe REST API with Node.js