restful-mongoose
v1.0.1
Published
Expose Mongoose models as RESTful Express resources.
Downloads
99
Maintainers
Readme
restful-mongoose
Expose Mongoose models as RESTful Express resources.
Installation
Available on npm:
npm install restful-mongoose
Usage
import restfulMongoose from 'restful-mongoose';
// any mongoose Model:
import Foo from '../models/foo';
// create and export a Router, mount it anywhere via .use()
export default restfulMongoose('foo', Foo);