As an example, I have 3 controllers and one function in node.js
function test() {console.log("controller called")}
controller1 = (req,res)=>{}
controller2 = (req,res)=>{}
controller3 = (req,res)=>{}
So, how can I call the 'test' function when one of the controllers is called? Is there any possible way to do it without writing inside of it?