From fae6914acace1a3b470f9d243fe8a2ba0f141388 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 30 Jun 2025 00:58:56 -0700 Subject: add basic batch manual score upload route --- backend/src/routes/gameRoutes.ts | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 backend/src/routes/gameRoutes.ts (limited to 'backend/src/routes/gameRoutes.ts') diff --git a/backend/src/routes/gameRoutes.ts b/backend/src/routes/gameRoutes.ts deleted file mode 100644 index 26e7171..0000000 --- a/backend/src/routes/gameRoutes.ts +++ /dev/null @@ -1,19 +0,0 @@ -import express from 'express'; -import { prisma } from '../config/db'; - -export const handleGetSupportedGames = async (req: express.Request, res: express.Response) => { - try { - const supportedGames = await prisma.game.findMany({ - select: { - internalName: true, - formattedName: true, - description: true - } - }); - res.status(200).json(supportedGames); - - } catch (error) { - console.error('Supported Games endpoint error:', error); - res.status(500).json({ error: 'Internal server error. Unable to fetch supported games' }); - } -} -- cgit v1.2.3