Replace 'stats' from artiste to new controller 'stats'

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-23 00:51:59 +04:00
parent 2c9f3f2891
commit 894c56014f
3 changed files with 11 additions and 7 deletions
-5
View File
@@ -9,11 +9,6 @@ const getSlug = text => {
}
module.exports = createCoreController('api::artiste.artiste', ({strapi}) => ({
async count(ctx) {
const countArtiste = await strapi.entityService.count('api::artiste.artiste')
const countParole = await strapi.entityService.count('api::parole.parole')
return {countArtiste, countParole}
},
async create(ctx) {
const {body} = ctx.request
let {data} = body