Remove count from parole controller
This commit is contained in:
@@ -3,11 +3,6 @@
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::parole.parole', ({strapi}) => ({
|
||||
async count(ctx) {
|
||||
const {query} = ctx.request
|
||||
const result = await strapi.entityService.count('api::parole.parole', query)
|
||||
return result
|
||||
},
|
||||
async findOne(ctx) {
|
||||
const {id} = ctx.params
|
||||
const parole = await strapi.entityService.findOne('api::parole.parole', id, {
|
||||
|
||||
Reference in New Issue
Block a user