API

Một số endpoint chính được hỗ trợ trong ứng dụng.

Endpoints
POST/api/auth/login

Đăng nhập bằng email/password

POST/api/auth/google

Đăng nhập Google OAuth callback

POST/api/messages/conversation/:id/user

Gửi tin nhắn người dùng (stream)

Ví dụ gọi API
fetch('/api/messages/conversation/123/user', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ content: 'Xin chào' })
});