From 17ba3c603e4c522ccca282f6786fff2e0b3f4f6e Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sat, 6 Dec 2025 18:01:31 +0900
Subject: feat(client): setup routing with wouter
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Add wouter router with pages for home, login, register, and 404.
Include tests for all routes using @testing-library/react.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
---
 src/client/App.tsx | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

(limited to 'src/client/App.tsx')

diff --git a/src/client/App.tsx b/src/client/App.tsx
index fa42302..01d843a 100644
--- a/src/client/App.tsx
+++ b/src/client/App.tsx
@@ -1,8 +1,13 @@
+import { Route, Switch } from "wouter";
+import { HomePage, LoginPage, NotFoundPage, RegisterPage } from "./pages";
+
 export function App() {
 	return (
-		<div>
-			<h1>Kioku</h1>
-			<p>Spaced repetition learning app</p>
-		</div>
+		<Switch>
+			<Route path="/" component={HomePage} />
+			<Route path="/login" component={LoginPage} />
+			<Route path="/register" component={RegisterPage} />
+			<Route component={NotFoundPage} />
+		</Switch>
 	);
 }
-- 
cgit v1.2.3-70-g09d2

