From 42ac9ab6fe6706bb8ee5cd29799dcc20d864b366 Mon Sep 17 00:00:00 2001 From: Yunus M Date: Mon, 28 Oct 2024 20:09:08 +0530 Subject: [PATCH] feat: update to use v2 instance --- frontend/src/api/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index a340f03ff1..b3a810e2ef 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -175,12 +175,12 @@ export const GatewayApiV2Instance = axios.create({ baseURL: `${ENVIRONMENT.baseURL}${gatewayApiV2}`, }); -GatewayApiV1Instance.interceptors.response.use( +GatewayApiV2Instance.interceptors.response.use( interceptorsResponse, interceptorRejected, ); -GatewayApiV1Instance.interceptors.request.use(interceptorsRequestResponse); +GatewayApiV2Instance.interceptors.request.use(interceptorsRequestResponse); // AxiosAlertManagerInstance.interceptors.response.use(