This would make it easier for us to support configurations that take an API or route as input instead of an exact SharedMethod name. Below are some basic examples
var methods = remotes.findByRoute('get', '/todos');
console.log(methods[0].name); // => find
// glob supported
var methods = remotes.findByRoute('get', '**');
// => all GET methods
var methods = remotes.findByRoute('get', '/*/*/count');
// => all count methods
With the release of LoopBack 4.0 GA (see the announcement), this module has entered Active LTS mode and no longer accepts new features (see our LTS policy).
This would make it easier for us to support configurations that take an API or route as input instead of an exact
SharedMethod
name. Below are some basic examples