Stability: 1 - Experimental
This feature may change. Please try it out and provide feedback. If it addresses a use-case that is important to you, tell the core team.
This hook's responsibilities are:
- Use
sails.modules
to read blueprints from the user's app intoself.middleware
. - Bind shadow routes to blueprint actions and controller actions.
- Listen for
route:typeUnknown
onsails
, interpret route syntax which should match a blueprint action, and bind the appropriate middleware (this happens when the Router is loaded, after all the hooks.)
// (i.e. if req.options.limit is set, it's likely a ceiling, and while overridable,
/// the ?limit=...
param probably shouldn't be allowed to exceed the configured limit in route options / policies)
If you have a question that isn't covered here, please feel free to send a PR adding it to this section (even if you don't have the answer!)