@@ -6,15 +6,13 @@ import SignUp from './pages/SignUp';
66import LoginComplete from './pages/Login/components/LoginComplete' ;
77import TermsAgreement from './pages/TermsAgreement' ;
88
9- import MyPage from './pages/MyPage ' ;
9+ import Profile from './pages/Profile ' ;
1010import ProfileEdit from './pages/ProfileEdit' ;
1111import AccountSetting from './pages/AccountSetting' ;
1212import AccountEdit from './pages/AccountEdit' ;
1313import AccountCancel from './pages/AccountCancel' ;
1414import Verification from './pages/verification' ;
1515
16- import ProfileViewer from './pages/ProfileViewer' ;
17-
1816import Post from './pages/Post' ;
1917import MyPost from './pages/MyPost' ;
2018import PostUpload from './pages/PostUpload' ;
@@ -37,13 +35,12 @@ const protectedRoutes = [
3735 { path : '/' , element : < Home /> } ,
3836
3937 // 사용자 프로필 및 계정 관리
40- { path : '/mypage ' , element : < MyPage /> } ,
38+ { path : '/profile/:userId ' , element : < Profile /> } ,
4139 { path : '/profile/edit' , element : < ProfileEdit /> } ,
4240 { path : '/account-setting' , element : < AccountSetting /> } ,
4341 { path : '/account-edit' , element : < AccountEdit /> } ,
4442 { path : '/account-cancel' , element : < AccountCancel /> } ,
4543 { path : '/verification' , element : < Verification /> } ,
46- { path : '/users/:userId' , element : < ProfileViewer /> } ,
4744
4845 { path : '/post/:postId' , element : < Post /> } ,
4946 { path : '/my-post/:postId' , element : < MyPost /> } ,
0 commit comments