From f655585cc81ab4af5d27cebb1fa9390e93e0a4bf Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Dec 2025 18:55:57 +0900 Subject: feat(client): add protected route handling with login redirect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unauthenticated users accessing protected pages (like HomePage) are now redirected to the login page. Includes ProtectedRoute component with loading state support. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/client/App.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/client/App.tsx') diff --git a/src/client/App.tsx b/src/client/App.tsx index 01d843a..098ded7 100644 --- a/src/client/App.tsx +++ b/src/client/App.tsx @@ -1,10 +1,15 @@ import { Route, Switch } from "wouter"; +import { ProtectedRoute } from "./components"; import { HomePage, LoginPage, NotFoundPage, RegisterPage } from "./pages"; export function App() { return ( - + + + + + -- cgit v1.2.3-70-g09d2