chore(README, defaultConfig): add defaultConfig to README

This commit is contained in:
Mahdi Dibaiee 2016-06-05 21:37:58 +04:30
parent 1a87621ce9
commit ca6298d6f4

View File

@ -27,7 +27,8 @@ associations(models); // pretend this function defines our associations
await register({
register: require('hapi-sequelize-crud'),
options: {
prefix: '/v1'
prefix: '/v1',
defaultConfig: { ... } // passed as `config` to all routes created
}
});
```