Skip to content

Commit 5013835

Browse files
authored
docs: fix typo in dynamic routing example (#2515)
1 parent 656df5c commit 5013835

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

docs/guide/routing.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -327,17 +327,15 @@ Instead, you can pass such content to each page using the `content` property on
327327

328328
```js
329329
export default {
330-
paths() {
331-
async paths() {
332-
const posts = await (await fetch('https://my-cms.com/blog-posts')).json()
330+
async paths() {
331+
const posts = await (await fetch('https://my-cms.com/blog-posts')).json()
333332

334-
return posts.map((post) => {
335-
return {
336-
params: { id: post.id },
337-
content: post.content // raw Markdown or HTML
338-
}
339-
})
340-
}
333+
return posts.map((post) => {
334+
return {
335+
params: { id: post.id },
336+
content: post.content // raw Markdown or HTML
337+
}
338+
})
341339
}
342340
}
343341
```

0 commit comments

Comments
 (0)