@exobase/use-lambda
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc.29 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @exobase/use-lambda

Weekly Downloads

31

Version

1.0.0-rc.29

License

MIT

Unpacked Size

26.2 kB

Total Files

17

Last publish

Collaborators

  • rayepps