Skip to content

Commit

Permalink
feat :: router setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 6, 2024
1 parent 1446227 commit 1bebfd5
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { Team } from '@/pages/Team';
import { TeamCreate } from '@/pages/Team/Create';
import { Error } from '@/pages/Error';
import { TeamManage } from '@/pages/Team/Manage';
import { TeamContainer } from '@/pages/Team/Container';
import { TeamDeployInformation } from '@/pages/Team/deploy/Information';
import { TeamDeploy } from '@/pages/Team/deploy';
import { TeamDeployCreate } from '@/pages/Team/deploy/Create';
import { TeamDeployContainer } from '@/pages/Team/deploy/Container';

export const Router = createBrowserRouter([
{
Expand All @@ -17,9 +22,34 @@ export const Router = createBrowserRouter([
children: [
{ index: true, element: <Team /> },
{ path: 'create', element: <TeamCreate /> },
{ path: 'manage', element: <TeamManage /> },
{
path: ':id',
children: [
{ index: true, element: <Error /> },
{ path: 'manage', element: <TeamManage /> },
{ path: 'container', element: <TeamContainer /> },
{
path: 'deploy',
children: [
{ index: true, element: <TeamDeploy /> },
{ path: 'create', element: <TeamDeployCreate /> },
{
path: ':id',
children: [
{ index: true, element: <TeamDeployInformation /> },
{ path: 'container', element: <TeamDeployContainer /> },
],
},
],
},
],
},
],
},
{
path: 'deploy',
children: [{ index: true }],
},
{
path: '*',
element: <Error />,
Expand Down

0 comments on commit 1bebfd5

Please sign in to comment.