We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 339eebb commit b37bd22Copy full SHA for b37bd22
README.md
@@ -486,5 +486,26 @@ const createItem = createEndpoint("/item/:id", {
486
})
487
```
488
489
+#### Configuration
490
+
491
+You can configure the open api schema by passing the `openAPI` option to the router.
492
493
+```ts
494
+const router = createRouter({
495
+ createItem
496
+}, {
497
+ openAPI: {
498
+ disabled: false, //default false
499
+ path: "/api/reference", //default /api/reference
500
+ scalar: {
501
+ title: "My API",
502
+ version: "1.0.0",
503
+ description: "My API Description",
504
+ theme: "dark" //default saturn
505
+ }
506
507
+})
508
+```
509
510
## License
511
MIT
0 commit comments