Skip to content

API Folder

Subhadip Saha edited this page May 16, 2025 · 1 revision

All API routes are implemented as Next.js route handlers. Here’s a breakdown of critical endpoints.

Auth

  • /api/auth/[...nextauth]/route.ts: GitHub-based OAuth

Developer APIs

  • /api/developers/: Search & fetch developers
  • /api/user/: Fetch or update user profile

Friends

  • /api/friends/: Friend management

    • request/, requests/received/, [id]/: Send, accept, decline requests

Gathering

  • Host and manage virtual events:

    • /api/gathering/: Core route
    • /api/gathering/[slug]/chat/, /polls/, /moderate/: Live collaboration features

Posts

  • /api/posts/: CRUD operations

    • /comments/, /poll-vote/, /vote/: Interactions on posts

AI

  • /api/ai-chat/: Streams response from Gemini AI

Misc

  • /api/search/: Global search across devs/posts
  • /api/upload/: Image/file uploads (Cloudinary)
  • /api/share/: Share links and profiles

Clone this wiki locally