|
|
@ -5,6 +5,7 @@ import Video from '../pages/Video.jsx' |
|
|
import ProtectedRoute from '../components/ProtectedRoute.jsx' |
|
|
import ProtectedRoute from '../components/ProtectedRoute.jsx' |
|
|
import Account from "../pages/Account.jsx"; |
|
|
import Account from "../pages/Account.jsx"; |
|
|
import ManageChannel from "../pages/ManageChannel.jsx"; |
|
|
import ManageChannel from "../pages/ManageChannel.jsx"; |
|
|
|
|
|
import ManageVideo from "../pages/ManageVideo.jsx"; |
|
|
|
|
|
|
|
|
const routes = [ |
|
|
const routes = [ |
|
|
{ path: "/", element: <Home/> }, |
|
|
{ path: "/", element: <Home/> }, |
|
|
@ -43,6 +44,14 @@ const routes = [ |
|
|
<ManageChannel/> |
|
|
<ManageChannel/> |
|
|
</ProtectedRoute> |
|
|
</ProtectedRoute> |
|
|
) |
|
|
) |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: "/manage-video/:id", |
|
|
|
|
|
element: ( |
|
|
|
|
|
<ProtectedRoute requireAuth={true}> |
|
|
|
|
|
<ManageVideo/> |
|
|
|
|
|
</ProtectedRoute> |
|
|
|
|
|
) |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|