Admit One Bookshelf
Admit One adapter for Bookshelf.js.
Install
npm install admit-one admit-one-bookshelf
Usage
var User Token;User = bookshelfModel;Token = bookshelfModel; var admit = 'bookshelf' bookshelf: modelClass: User ;
Once you have created an instance, see the main Admit One page for details on how to set up your routes with Express.
Migration
For quick reference, a basic migration to create a users table would look like this:
exports { return knexschema;}; exports { return knexschema;};
API
admit([options])
options.bookshelf.modelClass
Type: Bookshelf.Model
Default: undefined
License
This project is distributed under the MIT license.