function foo() { console.log('foo') }
function bar() { console.log('bar') }
function baz() { foo(); bar() }
export default {foo, bar, baz}
//backendcontrollersuserController.js
module.export.register= async(req,res)=> {
console.log("register controller");
}
module.export.login= async(req,res)=> {
console.log("Login controller");
}
//backend
outesuserRoutes.js
const { register, login } = require('../controllers/userController')
module.exports = {
method: function() {},
otherMethod: function() {},
};
module.exports = {
function1,
function2,
function3
}