1.0.1 • Published 3 years ago
@yehonadav/serverless-event-getters v1.0.1
lambdaHttp
http helpers for serverless http requests.
install
npm i @yehonadav/lambdaHttp
usage
import {createHandler, AsyncHandler, httpOkResponse} from "@yehonadav/lambdahttp"
let handler: AsyncHandler = async (event) => {
// do something
// ...
const responseData = {
dataint: 3,
dataintlist: [1,2,3],
};
return httpOkResponse({
body: responseData,
});
};
handler = createHandler(handler);
export { handler };
enjoy =)
1.0.1
3 years ago