16 lines
341 B
JavaScript
16 lines
341 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
async count(ctx, next) {
|
|
const countArtiste = await strapi.documents('api::artiste.artiste').count({
|
|
publicationState: 'live'
|
|
})
|
|
|
|
const countParole = await strapi.documents('api::parole.parole').count({
|
|
publicationState: 'live'
|
|
})
|
|
|
|
return {countArtiste, countParole}
|
|
}
|
|
}
|