First attempt at RESTful API using the MEAN stack