whoop
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user