Dynamic Node.js REST API with Express and Mongoose