Remove unused API endpoints for users and submissions from the API and documentation to streamline the codebase.
This commit is contained in:
@@ -272,14 +272,6 @@ router.delete('/challenge/chain/:id', (req, res) => {
|
||||
respond(res, { success: true });
|
||||
});
|
||||
|
||||
// ============= USERS =============
|
||||
|
||||
// GET /api/challenge/users
|
||||
router.get('/challenge/users', (req, res) => {
|
||||
const users = getUsers();
|
||||
respond(res, users);
|
||||
});
|
||||
|
||||
// ============= STATS =============
|
||||
|
||||
// GET /api/challenge/stats
|
||||
@@ -415,12 +407,6 @@ router.get('/challenge/user/:userId/stats', (req, res) => {
|
||||
|
||||
// ============= SUBMISSIONS =============
|
||||
|
||||
// GET /api/challenge/submissions
|
||||
router.get('/challenge/submissions', (req, res) => {
|
||||
const submissions = getSubmissions();
|
||||
respond(res, submissions);
|
||||
});
|
||||
|
||||
// GET /api/challenge/user/:userId/submissions
|
||||
router.get('/challenge/user/:userId/submissions', (req, res) => {
|
||||
const submissions = getSubmissions();
|
||||
|
||||
Reference in New Issue
Block a user