UNPKG

somod-http-extension

Version:

SOMOD middleware to intercept and validate Lambda event for AWS APIGateway

13 lines (12 loc) 621 B
export const SOMOD_HTTP_EXTENSION = "somod-http-extension"; export const PATH_NODE_MODULES = "node_modules"; export const PATH_BUILD = "build"; export const PATH_SERVERLESS = "serverless"; export const PATH_FUNCTIONS = "functions"; export const FILE_TEMPLATE_YAML = "template.yaml"; export const PATH_SOMOD_WORKING_DIR = ".somod"; export const PATH_HTTP_SCHEMAS = "http-schemas"; export const FILE_ROUTES_HTTP_JSON = "routes.http.json"; export const RESOURCE_TYPE_FUNCTION = "AWS::Serverless::Function"; export const KEYWORD_SOMOD_FUNCTION = "SOMOD::Function"; export const MIDDLEWARE_CONTEXT_KEY = "somod-http-request";