feat : Création de l'api, chargement des mockups

This commit is contained in:
Yaël Perret
2026-09-01 18:48:41 +02:00
parent fde710b607
commit 68d7ea3f9a
69 changed files with 1134 additions and 6 deletions

4
src/api/config.ts Normal file
View 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';