diff --git a/example/client-server/models.js b/example/client-server/models.js index f6dc594b..34d5c8ba 100644 --- a/example/client-server/models.js +++ b/example/client-server/models.js @@ -22,8 +22,7 @@ CartItem.sum = function(cartId, callback) { }); } -loopback.remoteMethod( - CartItem.sum, +CartItem.remoteMethod('sum', { accepts: {arg: 'cartId', type: 'number'}, returns: {arg: 'total', type: 'number'}