@exobase/use-lambda
v1.0.0-rc.30
Published
Exobase root hook to handle function running on AWS Lambda
Downloads
18
Readme
title: 'useLambda' description: 'A root hook to handle the AWS Lambda serverless framework' group: 'Root Hooks' badge: 'AWS Lambda'
Exobase root hook to handle function running on AWS Lambda. Built to support invocation from api gateway
Install
yarn add @exobase/lambda
Usage
import { compose } from 'radash'
import type { Props } from '@exobase/core'
import { useLambda } from '@exobase/lambda'
export const pingEndpoint = async (props: Props) => {
return {
message: 'pong'
}
}
export default compose(useLambda(), pingEndpoint)