UNPKG

@h4ad/serverless-adapter

Version:

Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Azure, Digital Ocean and many other clouds.

1 lines 874 B
{"version":3,"sources":["../../../src/frameworks/express/express.framework.ts"],"sourcesContent":["//#region\n\nimport type { IncomingMessage, ServerResponse } from 'http';\nimport type { Express } from 'express';\nimport type { FrameworkContract } from '../../contracts';\n\n//#endregion\n\n/**\n * The framework that forwards requests to express handler\n *\n * @breadcrumb Frameworks / ExpressFramework\n * @public\n */\nexport class ExpressFramework implements FrameworkContract<Express> {\n /**\n * {@inheritDoc}\n */\n public sendRequest(\n app: Express,\n request: IncomingMessage,\n response: ServerResponse,\n ): void {\n app(request, response);\n }\n}\n"],"mappings":"6CAcO,IAAMA,EAAN,KAA6D,CAdpE,MAcoE,CAAAC,EAAA,yBAI3D,YACLC,EACAC,EACAC,EACM,CACNF,EAAIC,EAASC,CAAQ,CACvB,CACF","names":["ExpressFramework","__name","app","request","response"]}