Process `settings.methods` and `config.methods` as a key-value map where the key is the method name and the value is an object describing the method in the format expected by strong-remoting. Example: a static method `Model.create` "methods": { "create": { "isStatic": true, "accepts": { "arg": "data", "type": "Car", "http": { "source": "body" } }, "returns": { "arg": "data", "type": "Car", "root": true } } } This patch is based on the code proposed by @mrfelton in #1163. |
||
---|---|---|
.. | ||
connectors | ||
access-context.js | ||
application.js | ||
browser-express.js | ||
builtin-models.js | ||
express-middleware.js | ||
loopback.js | ||
model.js | ||
persisted-model.js | ||
registry.js | ||
runtime.js | ||
server-app.js |