class ApiConfig { // static const String baseUrl = 'http://localhost:3000/api/v1/'; static const String baseUrl = 'https://app.ptits-pas.fr/api/v1'; // Auth endpoints static const String login = '/auth/login'; static const String register = '/auth/register'; static const String registerParent = '/auth/register/parent'; static const String registerAM = '/auth/register/am'; static const String refreshToken = '/auth/refresh'; static const String authMe = '/auth/me'; static const String changePasswordRequired = '/auth/change-password-required'; // Users endpoints static const String users = '/users'; static const String userProfile = '/users/profile'; static const String userChildren = '/users/children'; static const String gestionnaires = '/gestionnaires'; static const String parents = '/parents'; static const String assistantesMaternelles = '/assistantes-maternelles'; static const String relais = '/relais'; // Configuration (admin) static const String configuration = '/configuration'; static const String configurationSetupStatus = '/configuration/setup/status'; static const String configurationSetupComplete = '/configuration/setup/complete'; static const String configurationTestSmtp = '/configuration/test-smtp'; static const String configurationBulk = '/configuration/bulk'; // Dashboard endpoints static const String dashboard = '/dashboard'; static const String events = '/events'; static const String contracts = '/contracts'; static const String conversations = '/conversations'; static const String notifications = '/notifications'; // Headers static Map get headers => { 'Content-Type': 'application/json', 'Accept': 'application/json', }; static Map authHeaders(String token) => { ...headers, 'Authorization': 'Bearer $token', }; }