SyntaxFix
Write A Post
Hire A Developer
Questions
Yes. In your login module, just export a single function that takes the db as its argument. For example:
login
db
module.exports = function(db) { ... };