RESTify Mongoose Models in Express/NodeJS

npm install restgoose
2 downloads in the last week
5 downloads in the last month


Restify Mongoose Models

Making Mongoose models in NodeJS RESTful, by making an Express middleware layer to automatically add REST methods to each model in a directory.

// Loading restful module
var restful = require(__dirname + '/middleware/restful');
 * Using restful middleware at /resources URL, 
 * for all models in models directory
app.use('/resources', restful(__dirname + '/models'));
npm loves you