Update ChatDetail.tsx

This commit is contained in:
NotII
2025-03-23 23:23:17 +00:00
parent e521f061ab
commit 631929f1fd

View File

@@ -307,7 +307,7 @@ export default function ChatDetail({ chatId }: { chatId: string }) {
try { try {
// Use clientFetch instead of direct axios calls // Use clientFetch instead of direct axios calls
const response = await clientFetch(`/chats/${chatId}/messages`, { const response = await clientFetch(`/chats/${chatId}/message`, {
method: 'POST', method: 'POST',
body: JSON.stringify({ message: message.trim() }), body: JSON.stringify({ message: message.trim() }),
}); });