diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-30 00:58:56 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-30 00:58:56 -0700 |
| commit | fae6914acace1a3b470f9d243fe8a2ba0f141388 (patch) | |
| tree | cc2ac24b97b464189c220d6c5abe7d48e92f28aa /backend/src/index.ts | |
| parent | 722df5105c098f404e09e884a817acf92d939648 (diff) | |
add basic batch manual score upload route
Diffstat (limited to 'backend/src/index.ts')
| -rw-r--r-- | backend/src/index.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/backend/src/index.ts b/backend/src/index.ts index c776ce1..4a63c41 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -6,9 +6,10 @@ import { requireAuth } from './middleware/requireAuth'; import { startSessionCleanup } from './utils/session'; // Routes -import * as authRoutes from './routes/authRoutes'; -import * as userRoutes from './routes/userRoutes'; -import * as gameRoutes from './routes/gameRoutes'; +import * as authRoutes from './routes/auth'; +import * as userRoutes from './routes/user'; +import * as gameRoutes from './routes/game'; +import * as scoreRoutes from './routes/score'; const app = express(); const port = 5000; @@ -52,6 +53,8 @@ app.get('/api/session', userRoutes.handleGetCurrentSession); app.get('/api/supportedGames', gameRoutes.handleGetSupportedGames); +app.post('/api/uploadScore', requireAuth, scoreRoutes.handleScoreUpload); + app.listen(port, () => { console.log(`Server listening on port ${port}`); }); |
