Back to Sails

sails.getActions()

docs/reference/application/advanced-usage/sails.getActions.md

12.12.2000648 B
Original Source

sails.getActions()

Return a dictionary of Sails actions.

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

<docmeta name="displayName" value="sails.getActions()"> <docmeta name="pageType" value="method">