Skip to content

Commit

Permalink
feat: (#741) 공지사항 목록, 상세 페이지 router 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilpop8663 committed Oct 15, 2023
1 parent de57115 commit 962d1ae
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions frontend/src/routes/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import ErrorPage from '@pages/ErrorPage';
import HomePage from '@pages/HomePage';
import MyInfoPage from '@pages/MyInfoPage';
import NotFoundPage from '@pages/NotFoundPage';
import NoticeDetailPage from '@pages/notice/NoticeDetailPage';
import NoticeListPage from '@pages/notice/NoticeListPage';
import CreatePostPage from '@pages/post/CreatePostPage';
import EditPostPage from '@pages/post/EditPostPage';
import PostDetailPage from '@pages/post/PostDetailPage';
Expand Down Expand Up @@ -178,6 +180,30 @@ const router = createBrowserRouter([
),
errorElement: <ErrorPage />,
},
{
path: PATH.NOTICES,
children: [
{
path: ':id',
element: (
<>
<NoticeDetailPage />
<RouteChangeTracker />
</>
),
},
{
path: '',
element: (
<>
<NoticeListPage />
<RouteChangeTracker />
</>
),
},
],
errorElement: <ErrorPage />,
},
{
path: '*',
element: <NotFoundPage />,
Expand Down

0 comments on commit 962d1ae

Please sign in to comment.