feat(app): port history saving features

This commit is contained in:
ItzCrazyKns
2025-03-19 13:42:15 +05:30
parent c24edac16d
commit bab5dba6e1
5 changed files with 94 additions and 11 deletions

View File

@ -21,7 +21,7 @@ const Page = () => {
const fetchChats = async () => {
setLoading(true);
const res = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/chats`, {
const res = await fetch(`/api/chats`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',