The Strapi admin panel has its own api which is different from the content-api within the api/ folder. It doesn’t use the same routes, middlewares, controllers, services.
Maybe a lifecycle hook is what you need instead? I.e. a beforeFindMany is available.