// API base URL — change for dev/prod export const API_URL = __DEV__ ? 'http://192.168.1.83:3000' // serveur de dev local : 'https://memento-note.com' export const ENDPOINTS = { login: `${API_URL}/api/mobile/auth/login`, logout: `${API_URL}/api/mobile/auth/logout`, me: `${API_URL}/api/mobile/auth/me`, notebooks: `${API_URL}/api/mobile/notebooks`, notes: (notebookId?: string) => notebookId ? `${API_URL}/api/mobile/notes?notebookId=${notebookId}` : `${API_URL}/api/mobile/notes`, note: (id: string) => `${API_URL}/api/mobile/notes/${id}`, createNote: `${API_URL}/api/mobile/notes`, search: `${API_URL}/api/mobile/search`, dailyNote: `${API_URL}/api/mobile/notes/daily`, aiImprove: `${API_URL}/api/mobile/ai/improve`, aiTitle: `${API_URL}/api/mobile/ai/title`, aiTranscribe: `${API_URL}/api/mobile/ai/transcribe`, flashcardDecks: `${API_URL}/api/mobile/flashcards/decks`, flashcardSession: (deckId: string) => `${API_URL}/api/mobile/flashcards/session?deckId=${deckId}`, flashcardReview: `${API_URL}/api/mobile/flashcards/review`, flashcardGenerate: `${API_URL}/api/mobile/flashcards/generate`, }