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:
commit
27a632cd1f
|
@ -22,8 +22,7 @@ CartItem.sum = function(cartId, callback) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
loopback.remoteMethod(
|
CartItem.remoteMethod('sum',
|
||||||
CartItem.sum,
|
|
||||||
{
|
{
|
||||||
accepts: {arg: 'cartId', type: 'number'},
|
accepts: {arg: 'cartId', type: 'number'},
|
||||||
returns: {arg: 'total', type: 'number'}
|
returns: {arg: 'total', type: 'number'}
|
||||||
|
|
Loading…
Reference in New Issue