Skip to content

Commit

Permalink
removed the events get because I am goated
Browse files Browse the repository at this point in the history
  • Loading branch information
brelieu05 committed Jan 2, 2025
1 parent 4df361a commit 2a85f3c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions server/routes/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { keysToCamel } from "../common/utils";
export const eventsRouter = express.Router();
eventsRouter.use(express.json());

eventsRouter.get("/", async (req, res) => {
try {
const data = await db.query(`SELECT * FROM events`);
res.status(200).json(keysToCamel(data));
} catch (err) {
res.status(500).send(err.message);
}
});
// eventsRouter.get("/", async (req, res) => {
// try {
// const data = await db.query(`SELECT * FROM events`);
// res.status(200).json(keysToCamel(data));
// } catch (err) {
// res.status(500).send(err.message);
// }
// });

eventsRouter.delete("/:id", async (req, res) => {
try {
Expand Down

0 comments on commit 2a85f3c

Please sign in to comment.