UNPKG

@tsed/platform-aws

Version:
17 lines 608 B
import { HeaderParams, UsePipe } from "@tsed/common"; import { useDecorators } from "@tsed/core"; import { Description } from "@tsed/schema"; import { ParseApiGatewayPipe } from "../pipes/ParseApiGatewayPipe.js"; /** * Return the decoded x-apigateway-context * @decorator */ export function AwsContext() { return useDecorators(HeaderParams({ expression: "x-apigateway-context", useConverter: false, useType: String, useValidation: false }), Description("x-apigateway-context serialized Json"), UsePipe(ParseApiGatewayPipe)); } //# sourceMappingURL=awsContext.js.map