diff --git a/app/components/header/HeaderAuth.vue b/app/components/header/HeaderAuth.vue index 37645dd..53eb1eb 100644 --- a/app/components/header/HeaderAuth.vue +++ b/app/components/header/HeaderAuth.vue @@ -1,6 +1,5 @@ diff --git a/app/pages/tokens.vue b/app/pages/tokens.vue index 320c193..657ca36 100644 --- a/app/pages/tokens.vue +++ b/app/pages/tokens.vue @@ -14,9 +14,9 @@ useSeoMeta({ ogDescription: page.value.description, }) -const { data: tokens, refresh } = await useApi().api>('/api/token') +const { data: tokens, refresh } = await useApi().fetch>('/api/token') diff --git a/app/pages/users/index.vue b/app/pages/users/index.vue index 1710255..65d89e9 100644 --- a/app/pages/users/index.vue +++ b/app/pages/users/index.vue @@ -2,7 +2,7 @@ import type { Pen } from '@prisma/client' import { formatDistance } from 'date-fns' import type { MetapiResponse } from '~/types/metapi' -import type { Cartridge, User } from '~/types/models' +import type { User } from '~/types/models' useCrumb().add('Users') @@ -29,7 +29,7 @@ const columns = [ }, ] -const { data: users, refresh } = await useApi().api>('/api/user') +const { data: users } = await useApi().fetch>('/api/user')