You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ The `createRoute` function is used to define route handlers in a type-safe and s
46
46
| pathParams |[ZodType](https://zod.dev)|`(Optional)` Zod schema for validating path parameters. |
47
47
| queryParams |[ZodType](https://zod.dev)|`(Optional)` Zod schema for validating query parameters. |
48
48
| requestBody |[ZodType](https://zod.dev)| Zod schema for the request body (required for `POST`, `PUT`, `PATCH`). |
49
+
| hasFormData |`boolean`| Is the request body a [FormData](https://developer.mozilla.org/en-US/docs/Web/API/FormData)|
49
50
| action | (source: [ActionSource](#action-source)) => Promise<[Response](https://developer.mozilla.org/en-US/docs/Web/API/Response)> | Function handling the request, receiving pathParams, queryParams, and requestBody. |
50
51
| responses | Record<`number`, [ResponseDefinition](#response-definition)> | Object defining possible responses, each with a description and optional content schema. |
0 commit comments