Root Hooks
A root hook to handle the AWS Lambda serverless framework
Exobase root hook to handle function running on AWS Lambda. Built to support invocation from api gateway
yarn add @exobase/lambda
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)