Remove unused API endpoints for users and submissions from the API and documentation to streamline the codebase.

This commit is contained in:
2025-12-09 12:28:40 +03:00
parent 2a08d9df35
commit cc87f6ff55
2 changed files with 0 additions and 18 deletions

View File

@@ -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();