From f6d3e050816e34616b42464e5936a53eed659127 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Fri, 21 Nov 2025 18:58:13 +0800 Subject: [PATCH] Changed api link --- src/utils/functions/getApiMulti.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/functions/getApiMulti.ts b/src/utils/functions/getApiMulti.ts index 7b9d70e..d9c0af0 100644 --- a/src/utils/functions/getApiMulti.ts +++ b/src/utils/functions/getApiMulti.ts @@ -8,7 +8,7 @@ export default async (api: string, value?: any) => { if (!value) { fetch = await ofetch(API + api, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] }) } else { - fetch = await ofetch(API + `${api}/${value}/fetch-data`, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] }) + fetch = await ofetch(`${API}${api}/${value}/fetch-data`, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] }) } return fetch