Skip to content

Commit

Permalink
#17 Delete Http Call
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Sep 14, 2023
1 parent ca3119f commit 2f5d562
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions scylla-server/src/index.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -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}`);
});
Expand Down

0 comments on commit 2f5d562

Please sign in to comment.