This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api:problemNum:ranklist): add endpoint `/api/problems/ranklist/[…
…problemNum]` ## what - add endpoint `/api/problems/ranklist/[problemNum]` - get ranklist of a problem using problem number - if invalid `problem number` is given, a response of 400 will be returned - if the problem doesn't exist, a response of 404 will be returned - fetch problem ranklist - add extra properties - verdict object - fgColor - bgColor - title - fgHex - bgHex - language: convert language ID into a string - pnum: problem number - pTitle: name of the problem ## how ## why ## where - ./src/app/api/problems/ranklist/[problemNum]/route.ts ## usage
- Loading branch information