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