Friday, 22 November 2019

in express, recommended way to set arbitrary data on request object?

I have a middleware that derives some data and needs to be available to downstream handlers. Right now I am just setting that data directly on the request object. Is this an ok practice, or is there another recommended way?

Submitted November 23, 2019 at 03:02AM by wagonn

No comments:

Post a Comment