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/userGử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' })
});
