Open javier-creativedog-agency opened 6 months ago
Hi @javier-creativedog-agency Can you tell me which Strapi version you are using and which version of the Menus plugin as well? If you're able to share your package.json
that would be very helpful 👍🏻
If you were able to do this previously but it suddenly stopped working, it makes me wonder if Strapi itself changed something after an upgrade.
Hi, first of all, great plugin! It has been very useful.
We are trying to modify/extend the response of one endpoint:
/api/menus/:ID
, basically we need to add some data to the response object. and we are using this guide as reference: https://docs.strapi.io/dev-docs/plugins-extension#within-the-extensions-folder.We used this strategy in previous developments modifying plugins but this time when trying to get the required controller (
plugin.controllers.menu
) instead of getting an object with the default methods like in any other plugin (find
,findOne
,create
, etc.), we are getting an anonymous function, presumably becauseplugin.controllers.menu
is set viacreateCoreController
function, so we can't modify thefindOne
method like in others plugins.Our question is: There is a preferred way to extend or modify the response specific to this plugin? Is it even possible?
Thanks in advance for your help!