Merge and Minimize code (write function)
sandeepzgk opened this issue · comments
Sandeep Zechariah George commented
A lot of content in
- app.post("/getByEmail", async function(req, res)
- app.post("/getById", async function(req, res)
is repeated, can we merge the common aspects of these functions into one common function to ensure minimize code repetition.