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

17 lines
361 B
JavaScript
Raw Normal View History

'use strict';
module.exports = {
async count(ctx, next) {
const countArtiste = await strapi.entityService.count('api::artiste.artiste')
2022-05-26 03:04:33 +04:00
const countParole = await strapi.entityService.count('api::parole.parole', {
filters: {
publishedAt: {
$notNull: true,
}
}
})
2022-05-25 06:40:50 +04:00
2023-03-21 23:41:45 +04:00
return {countArtiste, countParole}
}
}