Add registration route to App component

Added a route for the registration page.
This commit is contained in:
Dosseh91
2025-12-17 22:05:12 +01:00
committed by GitHub
parent 333866ae53
commit 593ebf9595

View File

@@ -59,6 +59,7 @@ function App() {
<Route path="/listings" element={<MainLayout><Listings /></MainLayout>} /> <Route path="/listings" element={<MainLayout><Listings /></MainLayout>} />
<Route path="/listings/:id" element={<MainLayout><ListingDetail /></MainLayout>} /> <Route path="/listings/:id" element={<MainLayout><ListingDetail /></MainLayout>} />
<Route path="/login" element={<Login />} /> <Route path="/login" element={<Login />} />
<Route path="/register" element={<Register />} />
{/* ADD THIS LINE - The fix for your button */} {/* ADD THIS LINE - The fix for your button */}
<Route path="/register" element={<Register />} /> <Route path="/register" element={<Register />} />