@WrRan
2016-11-09T17:04:45.000000Z
字数 902
阅读 883
sails
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:
sails.modules
to read blueprints from the user's app into self.middleware
.route:typeUnknown
on sails
, 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!)