Skip to content

Commit

Permalink
Merge pull request #260 from jonfairbanks/fix/remove-socket-io
Browse files Browse the repository at this point in the history
More socket.io removal
  • Loading branch information
jonfairbanks authored Oct 15, 2024
2 parents d92d923 + 364f48a commit 6d03243
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/routes/yo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ router.get('/', (_req: Request, res: Response) => {
router.get('/api/link/:name', async (req: Request, res: Response, next: NextFunction) => {
try {
await YoCtrl.getYo(req, res, next);
await YoCtrl.emitSocketUpdate(req, res, next);
} catch (error) {
next(error); // Pass error to error handler
}
Expand Down Expand Up @@ -92,7 +91,6 @@ router.get('/api/recent', async (req: Request, res: Response, next: NextFunction
router.post('/api/link', async (req: Request, res: Response, next: NextFunction) => {
try {
await YoCtrl.postYo(req, res, next);
await YoCtrl.emitSocketUpdate(req, res, next);
} catch (error) {
next(error);
}
Expand All @@ -101,7 +99,6 @@ router.post('/api/link', async (req: Request, res: Response, next: NextFunction)
router.post('/api/update/:name', async (req: Request, res: Response, next: NextFunction) => {
try {
await YoCtrl.updateYo(req, res, next);
await YoCtrl.emitSocketUpdate(req, res, next);
} catch (error) {
next(error);
}
Expand All @@ -110,7 +107,6 @@ router.post('/api/update/:name', async (req: Request, res: Response, next: NextF
router.post('/api/delete/:name', async (req: Request, res: Response, next: NextFunction) => {
try {
await YoCtrl.deleteYo(req, res, next);
await YoCtrl.emitSocketUpdate(req, res, next);
} catch (error) {
next(error);
}
Expand Down

0 comments on commit 6d03243

Please sign in to comment.