feat: add jwennAnVedette
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user