From 8ae2028a78201aff57ca7a3a581dc3477d22a676 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 22 Aug 2025 13:18:40 +0000 Subject: [PATCH] Fix reload e clear session utente --- frontend/src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index dee1b01..9dcd044 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -27,13 +27,13 @@ export default function App() { }; const reloadHistory = async () => { - const res = await fetch(`/api/history?user_id=${userId}&session_id=${sessionId}`); + const res = await fetch(`/v1/history?user_id=${userId}&session_id=${sessionId}`); const history = await res.json(); setMessages(history); // from useChatStream }; const freshStart = async () => { - await fetch(`/api/v1/history?user_id=${userId}&session_id=${sessionId}`, { method: "DELETE" }); + await fetch(`/v1/history?user_id=${userId}&session_id=${sessionId}`, { method: "DELETE" }); setMessages([]); resetSessionId(); // or start a brand new sessionId: