Skip to content

Commit 09d02b7

Browse files
committed
🚚(frontend) move conf api urls to api folder
Previous refacto let only the api urls in the conf file, so better to move it to the api folder.
1 parent 56a26d9 commit 09d02b7

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

src/frontend/apps/impress/src/api/fetchApi.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { baseApiUrl } from '@/core';
2-
1+
import { baseApiUrl } from './config';
32
import { getCSRFToken } from './utils';
43

54
interface FetchAPIInit extends RequestInit {

src/frontend/apps/impress/src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export * from './APIError';
2+
export * from './config';
23
export * from './fetchApi';
34
export * from './helpers';
45
export * from './types';

src/frontend/apps/impress/src/core/auth/useAuthStore.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { create } from 'zustand';
22

3-
import { baseApiUrl } from '@/core/conf';
3+
import { baseApiUrl } from '@/api';
44

55
import { User, getMe } from './api';
66
import { PATH_AUTH_LOCAL_STORAGE } from './conf';
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export * from './AppProvider';
22
export * from './auth';
3-
export * from './conf';
43
export * from './config';

0 commit comments

Comments
 (0)