Replace 'stats' from artiste to new controller 'stats'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user