feat(audiobook): implement audiobook project management features
This commit is contained in:
@@ -16,6 +16,7 @@ const Home = lazy(() => import('@/pages/Home'))
|
||||
const Settings = lazy(() => import('@/pages/Settings'))
|
||||
const UserManagement = lazy(() => import('@/pages/UserManagement'))
|
||||
const VoiceManagement = lazy(() => import('@/pages/VoiceManagement'))
|
||||
const Audiobook = lazy(() => import('@/pages/Audiobook'))
|
||||
|
||||
function ProtectedRoute({ children }: { children: React.ReactNode }) {
|
||||
const { isAuthenticated, isLoading } = useAuth()
|
||||
@@ -109,6 +110,14 @@ function App() {
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/audiobook"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<Audiobook />
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
</Routes>
|
||||
</Suspense>
|
||||
</UserPreferencesProvider>
|
||||
|
||||
Reference in New Issue
Block a user