changement
This commit is contained in:
@@ -32,6 +32,13 @@ export async function drawWinnerApi() {
|
||||
return data
|
||||
}
|
||||
|
||||
export async function getEmailingContactsApi() {
|
||||
const res = await fetch('/api/admin/emailing', { headers: authHeaders() })
|
||||
const data = await res.json()
|
||||
if (!res.ok) throw apiError(data.message || 'Erreur contacts emailing.', res.status)
|
||||
return data
|
||||
}
|
||||
|
||||
export async function getWinnerApi() {
|
||||
const res = await fetch('/api/admin/draw', { headers: authHeaders() })
|
||||
if (res.status === 404) return null
|
||||
|
||||
Reference in New Issue
Block a user