"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReqCtx = exports.getReqContext = void 0;
const common_1 = require("@nestjs/common");
const getReqContext = (ctx) => {
    const req = ctx.switchToHttp().getRequest();
    return (req.__ctx ||= {});
};
exports.getReqContext = getReqContext;
exports.ReqCtx = (0, common_1.createParamDecorator)((_data, ctx) => (0, exports.getReqContext)(ctx));
//# sourceMappingURL=request-context.js.map