hapi-devine-api

0.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i hapi-devine-api

Weekly Downloads

4

Version

0.1.3

License

MIT

Last publish

Collaborators

  • wouterverweirder
  • duivvv