aboutsummaryrefslogtreecommitdiffstats
path: root/backend/src/index.ts
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-07-07 01:07:34 -0700
committerPinapelz <yukais@pinapelz.com>2025-07-07 01:07:41 -0700
commit7fe146f97ddd3f5a8d0c1a996a73cb296c28b9cc (patch)
tree916d2645c6332fe582ca62572a497724e1c8474a /backend/src/index.ts
parent152894146b72830e48e800721ea6160228a9bdc1 (diff)
implement score deletion
Diffstat (limited to 'backend/src/index.ts')
-rw-r--r--backend/src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/src/index.ts b/backend/src/index.ts
index ec38ee6..114dfac 100644
--- a/backend/src/index.ts
+++ b/backend/src/index.ts
@@ -54,7 +54,8 @@ app.get('/api/session', userRoutes.handleGetCurrentSession);
app.get('/api/supportedGames', gameRoutes.handleGetSupportedGames);
app.post('/api/uploadScore', requireAuth, scoreRoutes.handleScoreUpload);
-app.get('/api/scores', scoreRoutes.handleGetScores);
+app.get('/api/scores', requireAuth, scoreRoutes.handleGetScores);
+app.delete('/api/scores', requireAuth, scoreRoutes.handleScoreDeletion);
app.listen(port, () => {
console.log(`Server listening on port ${port}`);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage