@@ -20,6 +20,7 @@ import MbtiTestQuestions from "@/pages/MbtiTestQuestions";
2020import MbtiTestResult from "@/pages/MbtiTestResult" ;
2121import CenteredLayout from "@/components/CenteredLayout" ;
2222import { initGA , trackPageView } from "@/libs/analytics" ;
23+ import Error from "@/pages/Error" ;
2324
2425const PageTracker = ( ) => {
2526 const location = useLocation ( ) ;
@@ -77,16 +78,23 @@ const App = () => {
7778 < Route path = "/" element = { < Home /> } />
7879 < Route path = "/select-info" element = { < SelectInfo /> } />
7980 < Route path = "/chat" element = { < Chat /> } />
80- < Route path = "/chat-recommend" element = { < ChatRecommend /> } />
81- < Route path = "/chat-tips" element = { < ChatTips /> } />
82- < Route path = "/chat-temporature" element = { < ChatTemporature /> } />
81+ < Route
82+ path = "/chat-recommend/:virtualFriendId"
83+ element = { < ChatRecommend /> }
84+ />
85+ < Route path = "/chat-tips/:virtualFriendId" element = { < ChatTips /> } />
86+ < Route
87+ path = "/chat-temporature/:conversationId"
88+ element = { < ChatTemporature /> }
89+ />
8390 < Route path = "/contents/:id" element = { < Content /> } />
8491 < Route path = "/login" element = { < Login /> } />
8592 < Route path = "/my-info" element = { < MyInfo /> } />
8693 < Route path = "/kakao-login" element = { < KaKaoLogin /> } />
87- < Route path = "/mbti-test" element = { < MbtiTestIntro /> } />
94+ < Route path = "/mbti-test" element = { < MbtiTestIntro /> } />
8895 < Route path = "/mbti-test-progress" element = { < MbtiTestQuestions /> } />
8996 < Route path = "/mbti-test-result" element = { < MbtiTestResult /> } />
97+ < Route path = "*" element = { < Error statusCode = "500" /> } />
9098 </ Routes >
9199 </ CenteredLayout >
92100 </ Router >
0 commit comments