In Nodejs, i created a function in th path /js
var myfunction=function(param1){
}
exports.myfunctionA=myfunctionA
In the path routes, I want call this function myfunctionA=require('./js/myFunctionA') But I have a message: Unhandled rejection TypeError: myfunctionA is not a function
Thanks for your help, Mdouke