merge: integrate Google OAuth and latest application fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user