afterdunk
afterdunk
Explore posts from servers
NNuxt
Created by afterdunk on 6/2/2024 in #❓・help
useFetch unknown type when fetching api routes
whoops, I fixed it by changing
useFetch('/api/media/' + route.params.id)
useFetch('/api/media/' + route.params.id)
to
useFetch(`/api/media/${route.params.id}`)
useFetch(`/api/media/${route.params.id}`)
6 replies