Exportation du module dans le nœud js
var users = [
{ userName: "BarneyRubble", age: 38 },
{ userName: "WilmaFlintstone", age: 37 },
{ userName: "FredFlintstone", age: 36 }
];
module.exports.getAllUsers = function(){
return users;
}
Magnificent Millipede