Created
April 3, 2021 09:32
-
-
Save JustAyush/414bfc80e98a931038fb9b5c8318beeb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const userService = (() => { | |
// import db connection | |
// import utils | |
// import constants | |
// import global services (if any) | |
// Functions | |
// Fetch Users | |
const fetch = (req) => { | |
return new Promise(async (resolve, reject) => { | |
// | |
}); | |
} | |
// Helper Functions | |
const doSth = () => { | |
} | |
return { | |
fetch | |
}; | |
})(); | |
module.exports = userService; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment