The Wayback Machine - https://web.archive.org/web/20200614035339/https://github.com/developit/restful-mongoose
Skip to content
🐦 Expose Mongoose models as RESTful Express resources.
JavaScript
Branch: master
Clone or download

Latest commit

Latest commit d45035c Apr 25, 2017

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fixes params not being passed to function Apr 9, 2017
.babelrc Initial commit from gist Mar 15, 2016
.eslintrc Initial commit from gist Mar 15, 2016
.gitignore Initial commit from gist Mar 15, 2016
.npmignore Initial commit from gist Mar 15, 2016
LICENSE Initial commit from gist Mar 15, 2016
README.md Initial commit from gist Mar 15, 2016
package.json 1.0.1 Apr 25, 2017

README.md

restful-mongoose NPM Version

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);
You can’t perform that action at this time.