diff --git a/app.vue b/app.vue index 51f3050..1eafeaa 100644 --- a/app.vue +++ b/app.vue @@ -20,6 +20,13 @@ type ApiPagesType = { content: string } +type ApiReviewsType = { + id: number + image: string + text: string + comment: string +} + import '@/assets/main.scss' const { data: seoData } = await useFetch(`${apiBase}/kp/1`) @@ -34,6 +41,11 @@ useSeoMeta({ const { data: pagesData } = await useFetch(`${apiBase}/pages/`) const about = (pagesData.value as ApiPagesType[]).find(el => el.slug == 'about') + +const reviews = (pagesData.value as ApiPagesType[]).find(el => el.slug == 'clients') +const { data: reviewsData } = await useFetch(`${apiBase}/review/`) + +