module.exports = {
user1: {
updateNewUser: (req, res, next) => {
console.log("User1")
}
},
user2: {
updateNewUser: (req, res, next) => {
console.log("User2")
}
}
}
const one = require('./one.js')
one.user1.updateNewUser(<p1>, <p2>, <p3>)
0
solved Calling a function inside a function in node js