strongloop / strong-remoting

Communicate between objects in servers, mobile apps, and other servers.
www.strongloop.com
Other
105 stars 93 forks source link

Add route based lookup API #246

Closed ritch closed 6 years ago

ritch commented 9 years ago

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
raymondfeng commented 9 years ago

Nice

fabien commented 9 years ago

:+1:

bajtos commented 9 years ago

Cool :+1:

richardpringle commented 8 years ago

:+1:

bajtos commented 6 years ago

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).