diff options
Diffstat (limited to 'src/client/App.tsx')
| -rw-r--r-- | src/client/App.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
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 ( <Switch> - <Route path="/" component={HomePage} /> + <Route path="/"> + <ProtectedRoute> + <HomePage /> + </ProtectedRoute> + </Route> <Route path="/login" component={LoginPage} /> <Route path="/register" component={RegisterPage} /> <Route component={NotFoundPage} /> |
