Skip to content

Commit

Permalink
Feat(router): challenge-list path 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobbymin committed Sep 28, 2024
1 parent 1e3e9d1 commit d923524
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ProtectedRoute } from './protected-route';
import NavBar from '@/components/features/layout/nav-bar';
import ErrorPage from '@/pages/ErrorPage';
import ChallengeDetailPage from '@/pages/challenge-detail';
import ChallengeList from '@/pages/challenge-list';
import ChallengeRecord from '@/pages/challenge-record';
import DashBoardPage from '@/pages/dashboard';
import LoginPage from '@/pages/login';
Expand Down Expand Up @@ -58,6 +59,14 @@ const router = createBrowserRouter([
</ProtectedRoute>
),
},
{
path: RouterPath.challengeList,
element: (
<ProtectedRoute>
<ChallengeList />
</ProtectedRoute>
),
},
{
path: `:id/${RouterPath.detail}`,
element: (
Expand Down

0 comments on commit d923524

Please sign in to comment.