Hi I was just looking at some sample code for some class and I was wondering why are the functions in routes/index.js assigned to be properties of the exports object? for example this function:
exports.index = function(req, res){
console.log("yes")
};
What does exports do here and why is it used?