Skip to content

feat : add Google Calendar backend OAuth2 routes #1927

Description

@tmdeveloper007

Summary of What Needs to be Done

The Interview Prep frontend defines GOOGLE_CALENDAR API paths in frontend/src/utils/apiPaths.js (CONNECT, CALLBACK, STATUS, EVENTS), but the backend has no mounted /api/google-calendar/* routes. Every calendar action always fails with a 404.

Changes that Need to be Made

  1. Create backend/routes/googleCalendarRoutes.js with routes for:
    • GET /connect — initiate Google OAuth2 flow (stub or real)
    • GET /callback — handle OAuth2 callback
    • GET /status — check if user has connected calendar
    • POST /events — sync/save events
  2. Mount the router in backend/server.js.
  3. Add appropriate environment variable placeholders.

Impact that it would Provide

Makes the Google Calendar connect/sync UI functional instead of always failing with 404 errors. Provides a foundation for real OAuth2 integration.

Note: Please assign this issue to the tmdeveloper007 account.

Metadata

Metadata

Assignees

Labels

claimedThis issue has been claimed by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions