Uh oh!
There was an error while loading. Please reload this page.
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9a86a61 to
f0aa1d8Compare
evanugarte
left a comment
There was a problem hiding this comment.
this pr could probably be way less code, see comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| }; | ||
| router.get('/', async (req, res) => { |
There was a problem hiding this comment.
do we need this code still, if we have the router.use
does router.use take care of all this stuff now
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| }; | ||
| router.get('/', async (req, res) => { |
| # and instead define them inline here. We do this as multi-stage | ||
| # builds and environment variables from docker-compose.yml weren't working. | ||
| ENV REACT_APP_BASE_API_URL https://sce.sjsu.edu | ||
| ENV REACT_APP_SIGN2_URL /sign2/ |
There was a problem hiding this comment.
we dont use this anywhere do we need it

Summary
This PR includes a page and API for managing the LeetCode Leaderboard (sign2) from Clark.
Features
config.json, where users can set whether it is enabled or not. In the future, further unit tests should be added to address these conditions.Testing
This feature has been tested on the production server, where all functions work correctly. Ensure that, after merging, the sign2-specific data in
/api/config/config.jsonmatches what is expected to make sign2 reachable from Clark.