sandeepzgk / GameProbe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Merge and Minimize code (write function)

sandeepzgk opened this issue · comments

A lot of content in

  1. app.post("/getByEmail", async function(req, res)
  2. 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.