Merge pull request #340 from strongloop/fix/client-server-example

[2.0] Fix remote method definition in client-server example
This commit is contained in:
Ritchie Martori 2014-06-24 08:14:03 -07:00
commit 27a632cd1f
1 changed files with 1 additions and 2 deletions

View File

@ -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'}