feat(Countries): Adding countries endpoint

This commit is contained in:
2023-10-05 15:59:22 -06:00
parent 55f1c6e091
commit 83e037c298
34 changed files with 669 additions and 47 deletions

View File

@@ -0,0 +1,9 @@
'user strict';
const { ROOT_PATH, HANDLERS_PATH, MODELS_PATH, API_CONFIG } = process.env;
const usersModel = require( `${ROOT_PATH}/${MODELS_PATH}/users.model.js` );
async function getUserData( id ){
return await usersModel.findById( id , { password : 0 } );
}
module.exports = { getUserData };