Header menu via header.js

This commit is contained in:
karim hassan
2025-08-24 23:47:39 +00:00
parent f1103d67a0
commit eabd0aa50f
25 changed files with 869 additions and 185 deletions

35
README_ADMIN_CRUD.txt Normal file
View File

@@ -0,0 +1,35 @@
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).