middleware
talawa-api • Docs
talawa-api / libraries/requestContext / middleware
Function: middleware()
> middleware(): (req
, res
, next
) => void
Middleware to bind the request and response to the request context namespace.
Returns
Function
Parameters
• req: Request
<ParamsDictionary
, any
, any
, ParsedQs
, Record
<string
, any
>>
• res: Response
<any
, Record
<string
, any
>>
• next: NextFunction
Returns
void