forked from strongloop/loopback
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define remote methods via model settings/config
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 strongloop#1163.
- Loading branch information
Miroslav Bajtoš
committed
May 7, 2015
1 parent
ce26141
commit f93b69e
Showing
3 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters