Reference: https://gitter.im/balderdashy/sails?at=58be4b1af1a33b62758d57ea
Is there anyway that I can add a method to all routes?
Given a Sails app with two models User
and Pet
, how do we create a single controller action foo
and have it automatically run on requests for both /user/foo
and /pet/foo
?