Skip to content

Commit

Permalink
docs(config): update openAPI section (#2869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exotelis authored Nov 11, 2024
1 parent 8c934c9 commit 49c1560
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/3.config/0.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Enable experimental features.

#### `openAPI`

Enable `/_nitro/scalar`, `/_nitro/swagger` and `/_nitro/openapi.json` endpoints.
Enable `/_scalar`, `/_swagger` and `/_openapi.json` endpoints.

- Default: `false`

Expand Down Expand Up @@ -68,6 +68,22 @@ openAPI: {
}
```

Or if you want to customize the endpoints:

```js
openAPI: {
route: "/_docs/openapi.json",
ui: {
scalar: {
route: "/_docs/scalar"
},
swagger: {
route: "/_docs/swagger"
}
}
}
```

#### `wasm`

Enable WASM support
Expand Down

0 comments on commit 49c1560

Please sign in to comment.