From 7a7c2837b240ee00929d68fdede84167eab4bf5b Mon Sep 17 00:00:00 2001 From: lemintare Date: Sun, 19 Jul 2026 00:50:26 +0300 Subject: [PATCH] Add login route handling in AppRouter and introduce SessionRouter for session management --- frontend/src/App.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 11ad3b2..caad2c9 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -332,6 +332,13 @@ function App() { } function AppRouter() { + if (window.location.pathname === '/login') { + return + } + return +} + +function SessionRouter() { const session = useQuery({ queryKey: ['session'], queryFn: api.session,