UNPKG

@thisisagile/easy-express

Version:

Straightforward library for building domain-driven microservice architectures

5 lines (3 loc) 220 B
import express from 'express'; import { ctx } from '@thisisagile/easy'; export const requestContext = (req: express.Request, res: express.Response, next: express.NextFunction): void => ctx.request.create(() => next());