Edit Page

sails.getActions()

Return a dictionary of Sails actions.

sails.getActions();

The result is a flat (i.e. one-level) dictionary where the keys are the kebab-cased, dash-delimited action identities, and the values are the action functions. All actions in the dictionary will have been converted to req, res functions at this point, even if they were defined using actions2 syntax.

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.

Reference

Reference