merge: integrate Google OAuth and latest application fixes

This commit is contained in:
2026-08-20 23:01:39 +00:00
50 changed files with 2817 additions and 931 deletions

View File

@@ -49,3 +49,13 @@ export async function getWinnerApi() {
if (!res.ok) throw apiError(data.message || 'Erreur gagnant.', res.status)
return data
}
export async function setGameSettingsApi(startDate) {
const res = await fetch(`${BASE}/game-settings`, {
method: 'PUT',
headers: authHeaders(),
body: JSON.stringify({ startDate }),
})
const data = await res.json()
if (!res.ok) throw apiError(data.message || 'Erreur configuration du jeu.', res.status)
return data
}