blob: 023e8f6ec3631647aeec462017c8b51d12aef77e [file] [log] [blame]
22301008af173152025-06-15 10:46:25 +08001import React from 'react'
2import { Routes, Route, Navigate } from 'react-router-dom'
3import UploadPage from '../components/UploadPage'
4import PlaceholderPage from '../components/PlaceholderPage'
5import HomeFeed from '../components/HomeFeed'
22301008d5fbb782025-06-18 16:28:43 +08006import PostDetail from '../components/PostDetail'
22301008af173152025-06-15 10:46:25 +08007
8export default function AppRouter() {
9 return (
10 <Routes>
11 <Route path="/" element={<Navigate to="/dashboard" replace />} />
12
13 <Route path="/home" element={<HomeFeed />} />
22301008d5fbb782025-06-18 16:28:43 +080014 <Route path="/post/:id" element={<PostDetail />} />
22301008af173152025-06-15 10:46:25 +080015 <Route path="/notebooks" element={<PlaceholderPage pageId="notebooks" />} />
16 <Route path="/activity" element={<PlaceholderPage pageId="activity" />} />
17 <Route path="/notes" element={<PlaceholderPage pageId="notes" />} />
18 <Route path="/creator" element={<PlaceholderPage pageId="creator" />} />
19 <Route path="/journal" element={<PlaceholderPage pageId="journal" />} />
20
21 <Route path="/dashboard/*" element={<UploadPage />} />
22
23 <Route path="*" element={<PlaceholderPage pageId="home" />} />
24 </Routes>
25 )
26}