feat: add jwennAnVedette
Déploiement FRONT PROD / check (push) Successful in 2m2s
Déploiement FRONT PROD / deploy (push) Successful in 20s

This commit is contained in:
2026-06-17 08:51:06 +04:00
parent a89196909e
commit ed819e3537
2 changed files with 22 additions and 3 deletions
+19
View File
@@ -229,6 +229,25 @@ export async function jwennDenyeTeks() {
return data
}
export async function jwennAnVedette() {
const query = qs.stringify({
populate: ['artistes', 'couverture'],
filters: {
isNewRelease: { $eq: true }
},
pagination: { limit: 1 }
}, {
encodeValuesOnly: true
})
const {data} = await request(`/paroles?${query}`, {
next: {revalidate: 0},
headers: {Authorization: `Bearer ${readToken}`}
})
return data?.[0] ?? null
}
export async function jwennAnTeks(teksId, token) {
const headers = {
'content-type': 'application/json',