Skip to content

Commit

Permalink
Revert "Merge pull request #291 from TreeHacks/thijs/live-push-notifi…
Browse files Browse the repository at this point in the history
…cations"

This reverts commit a6b4d57, reversing
changes made to 1d7fbf0.
  • Loading branch information
akjadhav committed Dec 23, 2024
1 parent a6b4d57 commit c96a293
Show file tree
Hide file tree
Showing 6 changed files with 24,329 additions and 682 deletions.
11 changes: 0 additions & 11 deletions backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
setApplicationInfo,
submitApplicationInfo,
} from "./routes/application_info";
import { createEventPushSubscription, deleteEventPushSubscription, getEventSubscriptions } from "./routes/event_subscriptions"
import { getMeetInfo, setMeetInfo } from "./routes/meet_info";
import { getUsedMeals, setUsedMeals } from "./routes/used_meals";
import { getWorkshopList, setWorkshopList } from "./routes/workshop_info";
Expand Down Expand Up @@ -95,11 +94,6 @@ import {
getSponsorDetail,
createAdmin
} from "./routes/sponsors"
import LiveNotificationsService from "./services/live_notifications";

// Start the notification service
const notificationService = new LiveNotificationsService();
notificationService.start();

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

// Live push notifications, no auth required
apiRouter.post('/live/event_subscriptions', createEventPushSubscription);
apiRouter.delete('/live/event_subscriptions', deleteEventPushSubscription);
apiRouter.get('/live/event_subscriptions', getEventSubscriptions);

apiRouter.use("/", authenticatedRoute);

// Auth - user must be signed in:
Expand Down
29 changes: 0 additions & 29 deletions backend/models/LiveNotificationSubscription.ts

This file was deleted.

86 changes: 0 additions & 86 deletions backend/routes/event_subscriptions.ts

This file was deleted.

156 changes: 0 additions & 156 deletions backend/services/live_notifications.ts

This file was deleted.

Loading

0 comments on commit c96a293

Please sign in to comment.