Ability to generate a uri given controller, action and arguments
$ npm install sails-reverse-routing
Call reverseRouteService() anywhere like so:
var arguments = [arg1, arg2];
var components = { controller: "someController.someMethod", args: arguments };
var absoluteUrl = true;
var link = reverseRouteService(components, absoluteUrl);
Set absoluteUrl to false to get a relative URI. The return value is an object with a 'uri' and a 'verb' property.
$ npm install
$ npm test