diff --git a/src/utils/functions/getApi.ts b/src/utils/functions/getApi.ts index 0211fa1..20942e0 100644 --- a/src/utils/functions/getApi.ts +++ b/src/utils/functions/getApi.ts @@ -4,10 +4,10 @@ const API = import.meta.env.VITE_BACKEND export default async (api: string) => { try { - const fetch = await ofetch(API + api) + const fetch = await ofetch(API + api, { parseResponse: JSON.parse }) const result = fetch.result return result } catch { - return false + return [] } }