I think this is a slightly different issue, but I’m having issues with the newly created content type. " TypeError: Error creating endpoint GET /pushkeys: Cannot read properties ││ of undefined (reading ‘find’) " with this route
module.exports = {
// webpushKey,
'content-api': {
type: 'content-api',
routes: [
{
method: 'GET',
path: '/pushkeys',
handler: 'pushkey.find',
config: {
policies: [],
middlewares: [],
prefix: "",
auth: false
},
},```
and this controller ```js
module.exports = ({ strapi }) => ({
async find(ctx) {
// some custom logic here
// calling the default core action with super
const { data, meta } = await super.find(ctx);
return { data, meta };
},
});```
and this content type
``` "kind": "collectionType",
"collectionName": "pushkeys",
"info": {
"singularName": "pushkey",
"pluralName": "pushkeys",
"displayName": "pushkey"
},```