Skip to content

Commit

Permalink
🚚(frontend) move conf api urls to api folder
Browse files Browse the repository at this point in the history
Previous refacto let only the api urls in the conf
file, so better to move it to the api folder.
  • Loading branch information
AntoLC committed Nov 25, 2024
1 parent 56a26d9 commit 09d02b7
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/frontend/apps/impress/src/api/fetchApi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { baseApiUrl } from '@/core';

import { baseApiUrl } from './config';
import { getCSRFToken } from './utils';

interface FetchAPIInit extends RequestInit {
Expand Down
1 change: 1 addition & 0 deletions src/frontend/apps/impress/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './APIError';
export * from './config';
export * from './fetchApi';
export * from './helpers';
export * from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/apps/impress/src/core/auth/useAuthStore.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 0 additions & 1 deletion src/frontend/apps/impress/src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './AppProvider';
export * from './auth';
export * from './conf';
export * from './config';

0 comments on commit 09d02b7

Please sign in to comment.