Fix jsdoc for remoteMethod()
This commit is contained in:
parent
71f9dbd4b0
commit
85c68651bc
|
@ -320,13 +320,15 @@ Model.getApp = function(callback) {
|
|||
|
||||
/**
|
||||
* Enable remote invocation for the method with the given name.
|
||||
* See [Remote methods and hooks](http://docs.strongloop.com/display/LB/Remote+methods+and+hooks for more information.
|
||||
* Static method example:
|
||||
* ```js
|
||||
* Model.myMethod();
|
||||
* Model.remoteMethod('myMethod');
|
||||
* ```
|
||||
*
|
||||
* @param {String} name The name of the method.
|
||||
* ```js
|
||||
* // static method example (eg. Model.myMethod())
|
||||
* Model.remoteMethod('myMethod');
|
||||
* @param {Object} options The remoting options.
|
||||
* See [loopback.remoteMethod()](http://docs.strongloop.com/display/DOC/Remote+methods+and+hooks#Remotemethodsandhooks-loopback.remoteMethod(fn,[options])) for details.
|
||||
*/
|
||||
|
||||
Model.remoteMethod = function(name, options) {
|
||||
|
|
Loading…
Reference in New Issue