Chillco — Backend API
Next.js 15 · App Router · API Routes
- POST/api/authLogin via phone, email, or Google
- GET/api/eventsList events (category, page, limit)
- POST/api/eventsCreate event (admin)
- GET/api/events/:idGet event detail
- PATCH/api/events/:idUpdate event (admin)
- DELETE/api/events/:idDelete event (admin)
- GET/api/usersList users (admin)
- GET/api/users/:idGet user profile
- PATCH/api/users/:idUpdate user profile
- POST/api/reservationsCreate reservation after payment
- GET/api/reservations?userId=List user reservations
- GET/api/agenda?userId=User agenda (upcoming + past)
- POST/api/invitationsInvite friend by @username
- GET/api/invitations?userId=List received invitations
- POST/api/chatSend message to Ask Chillco IA
- GET/api/chat?userId=Fetch conversation history