Skip to content

Commit bde566b

Browse files
committed
fix(docs): update API endpoints to use JSON files
1 parent 1786e95 commit bde566b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/components/ChangelogWindow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const activeSection = ref('')
4444
const contentRef = ref<HTMLElement>()
4545
4646
const { data: changelogData } = await useAsyncData<ChangelogResponse>('changelog', async () => {
47-
return await $fetch('/api/changelog')
47+
return await $fetch('/api/changelog.json')
4848
}, {
4949
deep: true,
5050
lazy: false,

docs/components/ReadmeWindow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const contentRef = ref<HTMLElement>()
5050
5151
const { data: readmeData } = await useAsyncData<ReadmeResponse>(`readme-${locale.value}`, async () => {
5252
const currentLocale = locale.value
53-
return await $fetch(`/api/readme?locale=${currentLocale}`)
53+
return await $fetch(`/api/readme.json?locale=${currentLocale}`)
5454
}, {
5555
watch: [locale],
5656
deep: true,

0 commit comments

Comments
 (0)