refactor(rest) onPUT: shorthand properties

This commit is contained in:
coderaiser 2016-12-26 11:49:49 +02:00
parent 5926c4392f
commit 04681237c0

View file

@ -158,8 +158,8 @@ function onPUT(name, body, callback) {
check
.type('callback', callback, 'function')
.check({
name: name,
body: body
name,
body,
});
if (name[0] === '/')