aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/App.tsx
blob: 098ded70bf790f1e9bf5b5f921ee2ce68ff04261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Route, Switch } from "wouter";
import { ProtectedRoute } from "./components";
import { HomePage, LoginPage, NotFoundPage, RegisterPage } from "./pages";

export function App() {
	return (
		<Switch>
			<Route path="/">
				<ProtectedRoute>
					<HomePage />
				</ProtectedRoute>
			</Route>
			<Route path="/login" component={LoginPage} />
			<Route path="/register" component={RegisterPage} />
			<Route component={NotFoundPage} />
		</Switch>
	);
}