CougarCS / CougarCS-AdminPortal

Our officer admin portal created with React & Typescript
MIT License
6 stars 12 forks source link

Create API endpoint to get member info based on uhid #100

Closed BvChung closed 1 year ago

BvChung commented 1 year ago

What type of PR is this? (check applicable) 🚧

Describe your PR request 🔥


Potential data returned

  1. If member is not in contacts table => Empty array
  2. If contact is present but not member => member[0].membership is empty

    [
    {
    ... contact information,
    
    "membership": []
    }
    ]
  3. If contact is present + member => member[0].membership