Files
api.pawol.nu/src/api/stats/controllers/stats.js
T

16 lines
336 B
JavaScript
Raw Normal View History

'use strict';
module.exports = {
async count() {
2026-04-21 19:46:58 +04:00
const countArtiste = await strapi.documents('api::artiste.artiste').count({
publicationState: 'live'
});
2026-04-21 19:46:58 +04:00
const countParole = await strapi.documents('api::parole.parole').count({
publicationState: 'live'
});
2022-05-25 06:40:50 +04:00
return {countArtiste, countParole};
}
};