Skip to content

Commit

Permalink
Add history, susbriptions and upload pages
Browse files Browse the repository at this point in the history
  • Loading branch information
n1klaus committed Apr 27, 2023
1 parent 2ea98b0 commit 6542b1d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions frontend/src/router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import ResetPasswordPage from "../pages/resetPassword.page";
import SearchPage from "../pages/search.page";
import VideoPage from "../pages/video.page";
import UploadPage from "../pages/upload.page";
import HistoryPage from "../pages/history.page";
import SubscriptionsPage from "../pages/subscriptions.page";

const normalRoutes: RouteObject = {
// path: "*",
Expand All @@ -22,6 +24,14 @@ const normalRoutes: RouteObject = {
path: "profile",
element: <ProfilePage />,
},
{
path: "subscriptions",
element: <SubscriptionsPage />,
},
{
path: "history",
element: <HistoryPage />,
},
{
path: "login",
element: <LoginPage />,
Expand All @@ -40,16 +50,12 @@ const normalRoutes: RouteObject = {
},
{
path: "videos/search",
element: <SearchPage type={""}/>,
element: <SearchPage/>,
},
{
path: "upload",
element: <UploadPage />,
},
// {
// path: "videos/:id/download",
// element: <DownloadPage />,
// },
],
};

Expand Down

0 comments on commit 6542b1d

Please sign in to comment.