Get leaderboard stats endpoint
derogative404 opened this issue · comments
Description
Retrieves totalStamps, stampsLeft and prizesAchieved field when the endpoint /api/user/:upi
is called for a user and replaces static values within /leaderboard
Proposed Solution
Acceptance Criteria
- Get request for endpoint
/api/user/:upi
- Functions added to auto calculate totalStamps, stampsLeft and prizesAchieved within the User Schema
- Static values in
/leaderboard
page are replaced with these values once API is called