🚚(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.
This commit is contained in:
Anthony LC
2024-11-22 15:05:27 +01:00
committed by Anthony LC
parent 56a26d9663
commit 09d02b7ced
5 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
import { baseApiUrl } from '@/core';
import { baseApiUrl } from './config';
import { getCSRFToken } from './utils';
interface FetchAPIInit extends RequestInit {

View File

@@ -1,4 +1,5 @@
export * from './APIError';
export * from './config';
export * from './fetchApi';
export * from './helpers';
export * from './types';

View File

@@ -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';

View File

@@ -1,4 +1,3 @@
export * from './AppProvider';
export * from './auth';
export * from './conf';
export * from './config';