We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f11fe5 commit f217b9cCopy full SHA for f217b9c
1 file changed
README.md
@@ -217,11 +217,15 @@ Here's an example:
217
import { createApp } from "@aklinker1/zeta";
218
import { UploadFilesBody } from "@aklinker1/zeta/schema";
219
220
-const app = createApp().post("/upload", {
221
- body: UploadFilesBody,
222
-}, ({ body }) => {
223
- console.log(body); // File[]
224
-});
+const app = createApp().post(
+ "/upload",
+ {
+ body: UploadFilesBody,
+ },
225
+ ({ body }) => {
226
+ console.log(body); // File[]
227
228
+);
229
```
230
231
For all the body utils, just pass them to the `body` property and inside the route handler, the `body` variable will be typed accordingly.
0 commit comments