Skip to content

Commit

Permalink
docs: fix dead link
Browse files Browse the repository at this point in the history
  • Loading branch information
iann838 committed Nov 7, 2024
1 parent e822e0a commit b9593b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/guides/app-router-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This class is used for structuring [big applications](./bigger-apps.md) into mul
| `deprecated?` | `boolean` | Set the deprecated status to all routes. | `false` |
| `includeInSchema?` | `boolean` | Set to include or exclude all routes from the generated OpenAPI document. | `true` |
| `responses?` | `Record`\<`number`, `ResponseConfig`\> | Additional [response schemas](./responses.md#openapi-schemas) to all routes, shown in the generated OpenAPI document. | `{ 422: ... }` |
| `defaultResponseClass?` | `ResponseClass` | Default response class of all routes. | `JSONResponse` |
| `defaultResponseClass?` | [`ResponseClass`](/reference/modules/types.md#responseclass) | Default response class of all routes. | `JSONResponse` |

## App Options

Expand All @@ -40,4 +40,4 @@ All `Router` init options plus:
| `swaggerUrl?` | ``null`` \| `string` | Route path URL for serving the Swagger interactive documentation. | `"/docs"` |
| `redocUrl?` | ``null`` \| `string` | Route path URL for serving the ReDoc alternative documentation. | `"/redoc"` |
| `middleware?` | [`Middleware`](middleware.Middleware.md)\<`E`\>[] | List of middleware applied to the application | `[]` |
| `exceptionHandler?` | [`ExceptionHandler`](../modules/types.md#exceptionhandler)\<`E`\> | Exception handler when an exception or error has occured during requests. | `baseExceptionHandler` |
| `exceptionHandler?` | [`ExceptionHandler`](/reference/modules/types.md#exceptionhandler)\<`E`\> | Exception handler when an exception or error has occured during requests. | `baseExceptionHandler` |
2 changes: 1 addition & 1 deletion docs/guides/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To create a dependency you use the `Dependency` class to create a dependency ins

The dependency init receives:

- `of`: (optional) instance from which to inherit the `env` type (see [Dependency Env](./fetch_args.md#dependency-env)).
- `of`: (optional) instance from which to inherit the `env` type (see [Dependency Env](./fetch-args.md#dependency-env)).
- `name`: (optional) name of the middleware, this does not have any functional effect.
- `parameters`: the usual parameters declaration, these parameters will also be part of the generated OpenAPI document for the routes that uses this dependency.
- `handle`: the usual handler function, but with a **second optional positional argument**:
Expand Down

0 comments on commit b9593b1

Please sign in to comment.