-
-
Notifications
You must be signed in to change notification settings - Fork 22
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.
-
/api/auth/[...nextauth]/route.ts: GitHub-based OAuth
-
/api/developers/: Search & fetch developers -
/api/user/: Fetch or update user profile
-
/api/friends/: Friend management-
request/,requests/received/,[id]/: Send, accept, decline requests
-
-
Host and manage virtual events:
-
/api/gathering/: Core route -
/api/gathering/[slug]/chat/,/polls/,/moderate/: Live collaboration features
-
-
/api/posts/: CRUD operations-
/comments/,/poll-vote/,/vote/: Interactions on posts
-
-
/api/ai-chat/: Streams response from Gemini AI
-
/api/search/: Global search across devs/posts -
/api/upload/: Image/file uploads (Cloudinary) -
/api/share/: Share links and profiles