2.0.6 • Published 5 years ago

aws-serverless-lite v2.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

2.0.3

5 years ago

2.0.4

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago