Is it possible to add new route and new function in controller via custom?

Hi Team,

I needed to add a new route and a new function. So I added to the below files:


My work is done. However I was wondering if it is possible to do the same without touching the core files.

Please advise.


Yes, you could and should use /custom folder in your CMS installation, with custom middleware and your custom controller in it, please see the relevant docs here -