Update ChatDetail.tsx
This commit is contained in:
@@ -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() }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user