Skip to content

Commit

Permalink
OV-38: + home page route to protected routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanchousina committed Aug 23, 2024
1 parent 0af2906 commit 8671186
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/router/routes/protected-routes.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Navigate } from 'react-router-dom';

import { AppRoute } from '~/bundles/common/enums/app-route.enum.js';
import { Home } from '~/bundles/home/pages/home.js';
import { Studio } from '~/bundles/studio/pages/studio.js';

import { ProtectedRoute } from '../components/protected-route.js';
Expand All @@ -10,6 +11,10 @@ const protectedRoutes = {
element: <ProtectedRoute />,
children: [
//TODO Add protected routes here in element property and specify the correct path
{
path: AppRoute.ROOT,
element: <Home />,
},
{
path: AppRoute.STUDIO,
element: <Studio />,
Expand Down

0 comments on commit 8671186

Please sign in to comment.