Skip to content

Commit

Permalink
Added Protected Routes
Browse files Browse the repository at this point in the history
  • Loading branch information
NitinTheGreat committed Dec 16, 2024
1 parent 958e184 commit 8adaf62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ao3 webpages/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ function App() {
<Routes>
<Route path="/login" element={<Login />} />
<Route path="/signup" element={<SignUp />} />
{/* <Route element ={<Protect/>} > */}
<Route element ={<Protect/>} >
<Route path="/dashboard" element={<Dashboard />} /> {/* Corrected route */}
<Route path='/notes' element={<Component />} />
<Route path="/bookmarks" element={<Bookmarks />} />
<Route path="/history" element={<History/>} />
<Route path="/settings" element={<SettingsPage />} />
{/* </Route> */}
</Route>
{/* Add other routes here */}
<Route path="/" element={<div>Hello World</div>} />
{/* Add other routes here */}
Expand Down

0 comments on commit 8adaf62

Please sign in to comment.