diff --git a/scylla-server/src/index.ts b/scylla-server/src/index.ts index c32cc87b..73dc0bb0 100644 --- a/scylla-server/src/index.ts +++ b/scylla-server/src/index.ts @@ -1,7 +1,6 @@ import express, { Request, Response } from 'express'; import { Server, Socket } from 'socket.io'; import ProxyController from './proxy/proxy-controller'; -import prisma from './prisma/prisma-client'; import { createServerMessageMap } from './utils/message-maps.utils'; const app = express(); @@ -11,17 +10,6 @@ app.get('/', (req: Request, res: Response) => { res.send('Hello, Express server with TypeScript!'); }); -app.get('/runs', async (req: Request, res: Response) => { - try { - const data = await prisma.run.findUnique({ - where: { id: 1 } // Modify the query as needed - }); - res.json(data); - } catch (error) { - res.status(500).json({ error: 'Database error' }); - } -}); - const server = app.listen(port, () => { console.log(`Server is running on port ${port}`); });