forked from Yara724/api
9 lines
251 B
TypeScript
9 lines
251 B
TypeScript
import { ExecutionContext, createParamDecorator } from "@nestjs/common";
|
|
|
|
export const CustomHeader = createParamDecorator(
|
|
(data, ctx: ExecutionContext) => {
|
|
console.log(ctx.switchToHttp().getRequest());
|
|
console.log(ctx.getType());
|
|
},
|
|
);
|