From 1a289575c0837d253a3f98d69b53bba060edd16b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Mon, 23 May 2022 00:54:17 +0400 Subject: [PATCH] Remove count from parole controller --- src/api/parole/controllers/parole.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/api/parole/controllers/parole.js b/src/api/parole/controllers/parole.js index 2e3188c..d4833b0 100644 --- a/src/api/parole/controllers/parole.js +++ b/src/api/parole/controllers/parole.js @@ -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, {