Skip to content

Commit

Permalink
routes-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MetinVn committed Jul 12, 2024
1 parent 967c991 commit 1e62853
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,22 @@ ReactDOM.createRoot(document.getElementById("root")).render(
<>
<Router>
<Routes>
<Route exact path="/home/" Component={App} />
<Route exact path="/home/author/:authorKey" Component={AuthorInfo} />
<Route exact path="/home/author/" Component={AuthorSearch} />
<Route exact path="/home/books/" Component={BookSearch} />
<Route exact path="Open-Library-Search-API/home/" Component={App} />
<Route
exact
path="Open-Library-Search-API/home/author/:authorKey"
Component={AuthorInfo}
/>
<Route
exact
path="Open-Library-Search-API/home/author/"
Component={AuthorSearch}
/>
<Route
exact
path="Open-Library-Search-API/home/books/"
Component={BookSearch}
/>
</Routes>
</Router>
</>
Expand Down

0 comments on commit 1e62853

Please sign in to comment.