Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit c96a293

Browse files
committed
Revert "Merge pull request #291 from TreeHacks/thijs/live-push-notifications"
This reverts commit a6b4d57, reversing changes made to 1d7fbf0.
1 parent a6b4d57 commit c96a293

File tree

6 files changed

+24329
-682
lines changed

6 files changed

+24329
-682
lines changed

backend/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
setApplicationInfo,
2727
submitApplicationInfo,
2828
} from "./routes/application_info";
29-
import { createEventPushSubscription, deleteEventPushSubscription, getEventSubscriptions } from "./routes/event_subscriptions"
3029
import { getMeetInfo, setMeetInfo } from "./routes/meet_info";
3130
import { getUsedMeals, setUsedMeals } from "./routes/used_meals";
3231
import { getWorkshopList, setWorkshopList } from "./routes/workshop_info";
@@ -95,11 +94,6 @@ import {
9594
getSponsorDetail,
9695
createAdmin
9796
} from "./routes/sponsors"
98-
import LiveNotificationsService from "./services/live_notifications";
99-
100-
// Start the notification service
101-
const notificationService = new LiveNotificationsService();
102-
notificationService.start();
10397

10498
// Set up the Express app
10599
const app = express();
@@ -155,11 +149,6 @@ apiRouter.get("/leaderboard", [anonymousRoute], leaderboard);
155149
apiRouter.post("/mentor_create", [anonymousRoute], mentorCreate);
156150
apiRouter.post("/sponsor/admin", createAdmin);
157151

158-
// Live push notifications, no auth required
159-
apiRouter.post('/live/event_subscriptions', createEventPushSubscription);
160-
apiRouter.delete('/live/event_subscriptions', deleteEventPushSubscription);
161-
apiRouter.get('/live/event_subscriptions', getEventSubscriptions);
162-
163152
apiRouter.use("/", authenticatedRoute);
164153

165154
// Auth - user must be signed in:

backend/models/LiveNotificationSubscription.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

backend/routes/event_subscriptions.ts

Lines changed: 0 additions & 86 deletions
This file was deleted.

backend/services/live_notifications.ts

Lines changed: 0 additions & 156 deletions
This file was deleted.

0 commit comments

Comments
 (0)