This commit is contained in:
NotII
2025-03-03 21:20:58 +00:00
parent f5382d82f6
commit 2fafcb868a
7 changed files with 48 additions and 35 deletions

View File

@@ -62,7 +62,7 @@ export default function ChatDetail({ chatId }: { chatId: string }) {
}
});
const response = await authAxios.get(`/chats/${chatId}`);
const response = await authAxios.get(`/api/chats/${chatId}`);
setChat(response.data);
setLoading(false);
} catch (error) {
@@ -111,7 +111,7 @@ export default function ChatDetail({ chatId }: { chatId: string }) {
}
});
await authAxios.post(`/chats/${chatId}/message`, {
await authAxios.post(`/api/chats/${chatId}/message`, {
content: message
});