a89c7894cf
Backend: - FastAPI avec PostgreSQL et Redis - Authentification JWT complète - API REST pour musique, playlists, recherche - Streaming audio via yt-dlp - SQLAlchemy 2.0 async Frontend: - Flutter avec thème néon cyberpunk - State management Riverpod - Layout adaptatif desktop/mobile - Lecteur audio avec mini-player Infrastructure: - Docker Compose (PostgreSQL + Redis) - Scripts d'installation automatisés - Scripts de build pour exécutables Fichiers ajoutés: - BUILD_CLIENT_*.bat/sh: Scripts de compilation - BUILD_CLIENT_README.md: Documentation compilation - CHECK_FLUTTER.sh: Vérificateur d'environnement - requirements.txt mis à jour pour Python 3.13 - Modèles SQLAlchemy corrigés (metadata -> extra_metadata) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
49 lines
1.5 KiB
Dart
49 lines
1.5 KiB
Dart
/// API constants
|
|
class ApiConstants {
|
|
ApiConstants._();
|
|
|
|
// Base URLs
|
|
static const String baseUrl = String.fromEnvironment(
|
|
'API_BASE_URL',
|
|
defaultValue: 'http://localhost:8000/api/v1',
|
|
);
|
|
|
|
static const String wsUrl = String.fromEnvironment(
|
|
'WS_BASE_URL',
|
|
defaultValue: 'ws://localhost:8000',
|
|
);
|
|
|
|
// Timeout durations
|
|
static const int connectionTimeoutMs = 30000; // 30 seconds
|
|
static const int receiveTimeoutMs = 30000;
|
|
static const int sendTimeoutMs = 30000;
|
|
|
|
// API Endpoints
|
|
static const String auth = '/auth';
|
|
static const String music = '/music';
|
|
static const String playlists = '/playlists';
|
|
static const String library = '/library';
|
|
static const String search = '/search';
|
|
|
|
// Auth endpoints
|
|
static const String login = '/auth/login';
|
|
static const String register = '/auth/register';
|
|
static const String refresh = '/auth/refresh';
|
|
static const String logout = '/auth/logout';
|
|
static const String me = '/auth/me';
|
|
|
|
// Music endpoints
|
|
static const String tracks = '/music/tracks';
|
|
static const String artists = '/music/artists';
|
|
static const String albums = '/music/albums';
|
|
static const String searchMusic = '/music/search';
|
|
static const String stream = '/stream';
|
|
static const String recommendations = '/music/tracks';
|
|
static const String trending = '/music/trending';
|
|
|
|
// Playlist endpoints
|
|
static const String userPlaylists = '/playlists';
|
|
static const String playlistTracks = '/tracks';
|
|
static const String reorder = '/tracks/reorder';
|
|
}
|