Skip to content

Commit

Permalink
add some explanatory text (#3806)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 9, 2022
1 parent fd3fc39 commit d959713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/01-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interface Fallthrough {

> See the [TypeScript](/docs/typescript) section for information on `App.Locals` and `App.Platform`.
A page like `src/routes/items/[id].svelte` could get its data from `src/routes/items/[id].js`:
If an endpoint has the same filename as a page (except for the extension), the page will get its props from the endpoint. So a page like `src/routes/items/[id].svelte` could get its props from `src/routes/items/[id].js`:

```js
import db from '$lib/database';
Expand Down

0 comments on commit d959713

Please sign in to comment.