RESTful API exercise built in Node.js