36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
Super Sunday — Patch Admin CRUD (frontend only)
|
|
==============================================
|
|
|
|
Ce patch ajoute/actualise une page **Admin** simple qui consomme l'API via Nginx :
|
|
|
|
Fonctions incluses
|
|
- Tester la santé (`GET /api/health`)
|
|
- Créer un tournoi (`POST /api/tournaments`)
|
|
- Lister/supprimer des tournois (`GET /api/tournaments`, `DELETE /api/tournaments/:id`)
|
|
- Ajouter un joueur (`POST /api/participants`) + liste participants du tournoi
|
|
- Saisir un score de match (`POST /api/matches/:id/score`)
|
|
|
|
Fichiers ajoutés
|
|
- frontend/public/admin/index.html
|
|
- frontend/public/admin/admin.js
|
|
|
|
Installation
|
|
-----------
|
|
1) Dézipper à la racine du projet :
|
|
unzip -o supersunday_admin_crud_patch.zip -d .
|
|
|
|
2) Aller sur: http://localhost/admin
|
|
|
|
Prérequis backend
|
|
-----------------
|
|
Ce patch suppose que les routes existent côté API :
|
|
- GET /api/health
|
|
- GET /api/tournaments
|
|
- POST /api/tournaments
|
|
- DELETE /api/tournaments/:id
|
|
- GET /api/tournaments/:id/participants
|
|
- POST /api/participants
|
|
- POST /api/matches/:id/score
|
|
|
|
Si une route renvoie 404/405/500, donne-moi les logs API pour que je fournisse le routeur manquant (sans toucher au Dockerfile).
|