Skip to content
On this page

useEvent

Composable to access the Handler Event

Usage

import { use, useEvent } from '@serverless-use/apigw'

export const handler = use(async () => {
  const { event } = useEvent()

  return {
    event,
  }
})