Skip to content

Add docs#1245

Open
carlos-alberto wants to merge 1 commit intomainfrom
docs
Open

Add docs#1245
carlos-alberto wants to merge 1 commit intomainfrom
docs

Conversation

@carlos-alberto
Copy link
Contributor

No description provided.

Comment on lines +11 to +12
Requires Node.js 24.9+ and a Cloudflare Workers project with `wrangler`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just noise we won't remember to update.

|-----------|------|-------------|
| `auth` | `(c: { req, env }) => Promise<A>` | Authentication function. |
| `path` | `string` | URL path pattern. |
| `input` | `ZodType \| undefined` | Zod schema validating the request body. Pass `undefined` for routes that don't require a body. Accepts both `application/json` and `application/x-www-form-urlencoded` content types. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more for when you want to handle the body yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants