Skip to content

Instantly share code, notes, and snippets.

@JustAyush
Created April 3, 2021 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustAyush/414bfc80e98a931038fb9b5c8318beeb to your computer and use it in GitHub Desktop.
Save JustAyush/414bfc80e98a931038fb9b5c8318beeb to your computer and use it in GitHub Desktop.
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