mojito icon indicating copy to clipboard operation
mojito copied to clipboard

Mixing in static context into req's context

Open aljimenez opened this issue 10 years ago • 4 comments

This pull requests makes the static context available in the req's context, giving the req's context precedence as brought up in issue #1377.

aljimenez avatar May 30 '14 23:05 aljimenez

CLA is valid!

yahoocla avatar May 30 '14 23:05 yahoocla

I thought this was done internally whenever you try to use that context to access data from the store.

caridy avatar Jun 02 '14 22:06 caridy

It is, inside the store. However, req.context doesn't have it, so it's not possible to write other middleware that uses req.context to do interesting things.

drewfish avatar Jun 02 '14 23:06 drewfish

fair enough.

caridy avatar Jun 02 '14 23:06 caridy