Merge pull request #7 from Getable/require-payload-on-put

Fix: PUT requires a payload to work
This commit is contained in:
Mahdi Dibaiee 2016-07-08 17:17:40 +04:30 committed by GitHub
commit c0cb2c44e0

View File

@ -202,7 +202,11 @@ export const update = (server, model) => {
reply(instance);
},
config: defaultConfig,
config: _.defaultsDeep({
validate: {
payload: joi.object().required(),
},
}, defaultConfig),
});
};