2022-05-23 00:51:59 +04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
async count(ctx, next) {
|
2026-04-21 19:46:58 +04:00
|
|
|
const countArtiste = await strapi.documents('api::artiste.artiste').count({
|
|
|
|
|
publicationState: 'live'
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const countParole = await strapi.documents('api::parole.parole').count({
|
|
|
|
|
publicationState: 'live'
|
2022-05-26 03:04:33 +04:00
|
|
|
})
|
2022-05-25 06:40:50 +04:00
|
|
|
|
2023-03-21 23:41:45 +04:00
|
|
|
return {countArtiste, countParole}
|
2022-05-23 00:51:59 +04:00
|
|
|
}
|
|
|
|
|
}
|