diff --git a/src/runtime/composables/useWpPost.ts b/src/runtime/composables/useWpPost.ts index f263bdf..ce51117 100644 --- a/src/runtime/composables/useWpPost.ts +++ b/src/runtime/composables/useWpPost.ts @@ -12,9 +12,9 @@ const useWpPost = async ({ type = 'posts', id }: Options = {}) => { const query = id || route.path.substring(1) const { data, error } = await useAsyncData>('post', async () => { - const { apiEndpoint, additonnalQueryParams } = useRuntimeConfig().public.wordpress + const { apiEndpoint } = useRuntimeConfig().public.wordpress - return $fetch(`${apiEndpoint}/${type}/${query}${additonnalQueryParams}`) + return $fetch(`${apiEndpoint}/${type}/${query}`) }) if(error.value) {