Unverified Commit 1ba5c0ac authored by Slawa Pidgorny's avatar Slawa Pidgorny Committed by GitHub

Add link to TypeScript docs from API Routes section (#22564)

parent 66d2eae2
...@@ -26,3 +26,5 @@ The included helpers are: ...@@ -26,3 +26,5 @@ The included helpers are:
- `res.json(json)` - Sends a JSON response. `json` must be a valid JSON object - `res.json(json)` - Sends a JSON response. `json` must be a valid JSON object
- `res.send(body)` - Sends the HTTP response. `body` can be a `string`, an `object` or a `Buffer` - `res.send(body)` - Sends the HTTP response. `body` can be a `string`, an `object` or a `Buffer`
- `res.redirect([status,] path)` - Redirects to a specified path or URL. `status` must be a valid [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes). If not specified, `status` defaults to "307" "Temporary redirect". - `res.redirect([status,] path)` - Redirects to a specified path or URL. `status` must be a valid [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes). If not specified, `status` defaults to "307" "Temporary redirect".
To view an example using types, check out the [TypeScript documentation](/docs/basic-features/typescript.md#api-routes).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment