How can I request only the entries that belong to the authenticated user at a given endpoint?

I did for a while, the new strapi update has somehow broken my fix however.
the solution was to create a controller:
async find(ctx) {
const authorizationHeader = ctx.headers.authorization;

if (!authorizationHeader) {
  return ctx.badRequest('Authorization header is required');
}
const [scheme, token] = authorizationHeader.split(' ');
const decodedToken = jwt.jwtDecode(token);

ctx.query = {
  filters: {
    user: {
      id: {
        $eq: decodedToken.id
      }
    }
  }
}

const { data, meta } = await super.find(ctx);
return { data, meta}

},

Keep in mind thatt this no longer works, I will get back here once I find what does work