From 5c171e2737ce1f73b00c707444f332ae5906b645 Mon Sep 17 00:00:00 2001 From: stack72 Date: Fri, 26 Jan 2024 18:00:45 +0000 Subject: [PATCH] feat(web): Add the ability to trigger the API requests that the front end can trigger --- app/web/src/store/apis.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/web/src/store/apis.ts b/app/web/src/store/apis.ts index 772528b79d..9804d6cac7 100644 --- a/app/web/src/store/apis.ts +++ b/app/web/src/store/apis.ts @@ -21,7 +21,8 @@ export const sdfApiInstance = Axios.create({ }, baseURL: API_HTTP_URL, }); - +// eslint-disable-next-line @typescript-eslint/no-explicit-any +if (typeof window !== "undefined") (window as any).sdf = sdfApiInstance; function injectBearerTokenAuth(config: InternalAxiosRequestConfig) { // inject auth token from the store as a custom header const authStore = useAuthStore();