This feature is still experimental.
This method is still under development, and its interface and/or behavior could change at any time.
Flush and reload all Sails actions
This method causes hooks to run their
registerActions() methods if they have them. After the hooks are finished reloading / re-registering their actions, actions in the
api/controllers folder (including those stored in controller files) are reloaded and merged on top of those loaded via hooks.
This method is useful primarily in development scenarios.
|1||options||Currently accepts one key,
|2||callback||A callback to be called with the virtual response.|
- Never dynamically replace your Sails.js controller or action files on disk with untrusted code at runtime, regardless of whether you are using
.reloadActions()in your app or not. Since
reloadActions()runs the code in your Sails.js app's files, if the files are not safe to run, then using
reloadActions()would be a security risk. This risk is only present if your Sails app is deliberately overwriting its own files to replace them with unsafe code.