fix: photos admin — URL via /api/v1/uploads + static Express

- Nest: servir le volume uploads aussi sous /api/v1/uploads (Traefik /api)
- Flutter: _fullPhotoUrl = base API + chemin /uploads/... (plus d’origine site seul)
- EnfantDossier: tolérer photoUrl camelCase

Made-with: Cursor
This commit is contained in:
2026-04-11 16:47:29 +02:00
parent e7f0037ac3
commit 09289882d0
4 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ class EnfantDossier {
gender: (json['gender'] ?? json['genre'])?.toString(),
status: json['status']?.toString(),
dueDate: json['due_date']?.toString(),
photoUrl: json['photo_url']?.toString(),
photoUrl: (json['photo_url'] ?? json['photoUrl'])?.toString(),
consentPhoto: json['consent_photo'] == true,
);
}