Exportação do módulo no nó js
var users = [
{ userName: "BarneyRubble", age: 38 },
{ userName: "WilmaFlintstone", age: 37 },
{ userName: "FredFlintstone", age: 36 }
];
module.exports.getAllUsers = function(){
return users;
}
Magnificent Millipede