[关闭]
@WrRan 2016-11-24T06:56:26.000000Z 字数 552 阅读 1115

sails

request (Core Hook)

In future releases, the various responsibilities of this hook will likely be farmed out to other hooks and/or pulled into core.

Purpose

This hook's responsibilities are:

Add properties to req
Set default view locals (i.e. app.locals)

Note that this will likely move into the views hook in the future.

FAQ

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!)

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注