https://github.com/yspreen/llrt-express
Tiny express-like library for AWS Lambda with LLRT
https://github.com/yspreen/llrt-express
Last synced: about 1 year ago
JSON representation
Tiny express-like library for AWS Lambda with LLRT
- Host: GitHub
- URL: https://github.com/yspreen/llrt-express
- Owner: yspreen
- Created: 2024-03-26T14:21:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-21T15:07:54.000Z (over 1 year ago)
- Last Synced: 2025-03-21T16:23:54.286Z (over 1 year ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Tiny express-like library for AWS Lambda with LLRT
Use like:
```ts
// lambda.ts
import {
APIGatewayProxyEvent,
APIGatewayProxyResult,
Context,
} from "aws-lambda";
import app from "./app";
// Your AWS Lambda handler
export const handler = async (
event: APIGatewayProxyEvent,
context: Context
): Promise => {
return app.getLambdaResponse(event, context);
};
```
```ts
// app.ts
import express, { NextFunction, Request, Response, Router } from "./express";
const app = express();
export default app;
```