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 {
// Use clientFetch instead of direct axios calls
const response = await clientFetch(`/chats/${chatId}/messages`, {
const response = await clientFetch(`/chats/${chatId}/message`, {
method: 'POST',
body: JSON.stringify({ message: message.trim() }),
});