Skip to content

Commit

Permalink
better index use in routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adeynack committed Oct 3, 2024
1 parent a803a8b commit f9a83a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/src/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ export function AppRouter() {
<BrowserRouter>
<Routes>
<Route path="/" element={<MainLayout />}>
<Route index path="/" element={<RootIndex />} />
<Route index element={<RootIndex />} />
<Route path="books">
<Route path="" element={<BooksIndex />} />
<Route path=":bookId" element={<BooksShow />}>
<Route index element={<BooksIndex />} />
<Route path=":bookId">
<Route index element={<BooksShow />} />
<Route path="books" element={<BooksIndex />} />
<Route path="accounts" element={<div>TODO: Accounts</div>} />
<Route path="categories" element={<div>TODO: Categories</div>} />
Expand Down

0 comments on commit f9a83a2

Please sign in to comment.