Add count method to artiste & parole
This commit is contained in:
@@ -9,6 +9,11 @@ const getSlug = text => {
|
||||
}
|
||||
|
||||
module.exports = createCoreController('api::artiste.artiste', ({strapi}) => ({
|
||||
async count(ctx) {
|
||||
const {query} = ctx.request
|
||||
const result = await strapi.entityService.count('api::artiste.artiste', query)
|
||||
return result
|
||||
},
|
||||
async create(ctx) {
|
||||
const {body} = ctx.request
|
||||
let {data} = body
|
||||
|
||||
Reference in New Issue
Block a user