feat: implement application routing with protected routes and sidebar navigation component

This commit is contained in:
Michael committed 2026-04-16 12:27:58 +02:00
1 parent a8cef14226
commit f48789dfde
4 files changed
+387 -8

No files matched your search

+12 -3
View File
@@ -4,7 +4,8 @@ import './styles/globals.css';
import { authService } from './services/authService';
import Login from './pages/Login';
import Dashboard from './pages/Dashboard';
import Discover from './pages/Discover';
import Trending from './pages/Trending';
import AddPodcast from './pages/AddPodcast';
import Navigation from './components/Navigation';
const queryClient = new QueryClient({
@@ -47,10 +48,18 @@ export default function App() {
}
/>
<Route
path="/discover"
path="/trending"
element={
<ProtectedRoute>
<Discover />
<Trending />
</ProtectedRoute>
}
/>
<Route
path="/add"
element={
<ProtectedRoute>
<AddPodcast />
</ProtectedRoute>
}
/>