0.1.3 • Published 8 years ago

hapi-devine-api v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hapi-devine-api

Description

šŸ”§ This Hapi plugin generates API routes based on Mongoose schemas

!!! USE THIS IN COMBINATION WITH 'hapi-devine-mongodb' !!!

Install hapi-devine-api

yarn add hapi-devine-api

Usage

Register it after hapi-devine-mongodb

server.register({

  register: require(`hapi-devine-api`)

}, pluginHandler);

add api: true to your schema exports, see hapi-devine-mongodb

const schema = {
  // ...
}

module.export = {
  schema,
  api: true
}

License

MIT