mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-22 14:38:03 +02:00
feat: implement application routing with protected routes and sidebar navigation component
This commit is contained in:
1 parent
a8cef14226
commit
f48789dfde
4 files changed
+387
-8
No files matched your search
+12
-3
@@ -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>
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user