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

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