Skip to content

Commit

Permalink
[docs] updated .server docs to include links to methods (#7788)
Browse files Browse the repository at this point in the history
  • Loading branch information
brittneypostma committed Nov 24, 2022
1 parent 6cbde19 commit 1427978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/20-core-concepts/10-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export function GET({ url }) {
The first argument to `Response` can be a [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream), making it possible to stream large amounts of data or create server-sent events (unless deploying to platforms that buffer responses, like AWS Lambda).
You can use the `error`, `redirect` and `json` methods from `@sveltejs/kit` for convenience (but you don't have to).
You can use the [`error`](/docs/modules#sveltejs-kit-error), [`redirect`](/docs/modules#sveltejs-kit-redirect) and [`json`](/docs/modules#sveltejs-kit-json) methods from `@sveltejs/kit` for convenience (but you don't have to).
If an error is thrown (either `throw error(...)` or an unexpected error), the response will be a JSON representation of the error or a fallback error page — which can be customised via `src/error.html` — depending on the `Accept` header. The [`+error.svelte`](#error) component will _not_ be rendered in this case. You can read more about error handling [here](/docs/errors).
Expand Down

0 comments on commit 1427978

Please sign in to comment.