diff --git a/src/frontend/apps/impress/src/core/conf.ts b/src/frontend/apps/impress/src/api/config.ts similarity index 100% rename from src/frontend/apps/impress/src/core/conf.ts rename to src/frontend/apps/impress/src/api/config.ts diff --git a/src/frontend/apps/impress/src/api/fetchApi.ts b/src/frontend/apps/impress/src/api/fetchApi.ts index 208f5e819..24e6b319e 100644 --- a/src/frontend/apps/impress/src/api/fetchApi.ts +++ b/src/frontend/apps/impress/src/api/fetchApi.ts @@ -1,5 +1,4 @@ -import { baseApiUrl } from '@/core'; - +import { baseApiUrl } from './config'; import { getCSRFToken } from './utils'; interface FetchAPIInit extends RequestInit { diff --git a/src/frontend/apps/impress/src/api/index.ts b/src/frontend/apps/impress/src/api/index.ts index 331566655..1d742adb8 100644 --- a/src/frontend/apps/impress/src/api/index.ts +++ b/src/frontend/apps/impress/src/api/index.ts @@ -1,4 +1,5 @@ export * from './APIError'; +export * from './config'; export * from './fetchApi'; export * from './helpers'; export * from './types'; diff --git a/src/frontend/apps/impress/src/core/auth/useAuthStore.tsx b/src/frontend/apps/impress/src/core/auth/useAuthStore.tsx index 787e408ac..09283db90 100644 --- a/src/frontend/apps/impress/src/core/auth/useAuthStore.tsx +++ b/src/frontend/apps/impress/src/core/auth/useAuthStore.tsx @@ -1,6 +1,6 @@ import { create } from 'zustand'; -import { baseApiUrl } from '@/core/conf'; +import { baseApiUrl } from '@/api'; import { User, getMe } from './api'; import { PATH_AUTH_LOCAL_STORAGE } from './conf'; diff --git a/src/frontend/apps/impress/src/core/index.ts b/src/frontend/apps/impress/src/core/index.ts index 99176076a..20df7a863 100644 --- a/src/frontend/apps/impress/src/core/index.ts +++ b/src/frontend/apps/impress/src/core/index.ts @@ -1,4 +1,3 @@ export * from './AppProvider'; export * from './auth'; -export * from './conf'; export * from './config';