// This api route is typed and will correctly infer Word[]
const words = await $fetch(`/api/words/all`)
// This api route is not typed, IDE can not infer response properties
const word = await $fetch(`/api/words/${route.params.wordId}`)
// This api route is typed and will correctly infer Word[]
const words = await $fetch(`/api/words/all`)
// This api route is not typed, IDE can not infer response properties
const word = await $fetch(`/api/words/${route.params.wordId}`)