feat : Création de l'api, chargement des mockups
This commit is contained in:
4
src/api/config.ts
Normal file
4
src/api/config.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const API_BASE_URL = process.env.EXPO_PUBLIC_API_BASE_URL ?? 'http://localhost:3000';
|
||||
|
||||
// Toggle once here to switch all API functions between mocks and real backend.
|
||||
export const API_USE_MOCKS = (process.env.EXPO_PUBLIC_API_USE_MOCKS ?? 'true') === 'true';
|
||||
Reference in New Issue
Block a user