aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/App.tsx')
-rw-r--r--src/client/App.tsx13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/App.tsx b/src/client/App.tsx
index 4c5b08a..f774003 100644
--- a/src/client/App.tsx
+++ b/src/client/App.tsx
@@ -1,6 +1,12 @@
import { Route, Switch } from "wouter";
import { ProtectedRoute } from "./components";
-import { DeckDetailPage, HomePage, LoginPage, NotFoundPage } from "./pages";
+import {
+ DeckDetailPage,
+ HomePage,
+ LoginPage,
+ NotFoundPage,
+ StudyPage,
+} from "./pages";
export function App() {
return (
@@ -15,6 +21,11 @@ export function App() {
<DeckDetailPage />
</ProtectedRoute>
</Route>
+ <Route path="/decks/:deckId/study">
+ <ProtectedRoute>
+ <StudyPage />
+ </ProtectedRoute>
+ </Route>
<Route path="/login" component={LoginPage} />
<Route component={NotFoundPage} />
</Switch>