2.0.6 • Published 4 years ago
aws-serverless-lite v2.0.6
AWS SERVERLESS LITE
A simple library to manage routing in AWS lambda functions
Example Usage
index.js
import {
handler as APIHandler,
IAPIRoute,
httpMethod,
} from 'aws-serverless-lite';
const routes: IAPIRoute[] = [
{
httpMethod: httpMethod.GET,
path: 'projects',
handlerFunction: getAll,
},
{
httpMethod: httpMethod.GET,
path: 'projects/:projectId',
handlerFunction: ProjectService.update,
},
];
exports.handler = async (event: any, _: any, callback: any) =>
APIHandler(routes)(event, _, callback);
License
This project is licensed under the MIT license.
2.0.6
4 years ago
2.0.3
4 years ago
2.0.4
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago