hapi-waterhole
v1.0.0
Published
gathering point to connect waterline models to rest endpoints via hapi
Downloads
2
Readme
hapi-waterhole
gathering point to connect waterline models to rest endpoints via hapi
Example:
server.register(
[
require('hapi-auth-basic'),
register,
{
register: require('hapi-waterhole'),
options: {
adapters: {
disk: require('sails-disk')
},
connections: {
simple: { adapter: 'disk' }
},
models: [
{
identity: 'hippo',
connection: 'simple',
attributes: {
name: 'string'
}
}
],
auth: {
find: 'simple',
create: 'simple',
update: 'simple',
delete: 'simple'
}
}
}
]
, (err) => {
...