Feat: OAuth 라우터 코드 추가

This commit is contained in:
정현조 2024-09-11 13:40:07 +09:00
parent e054f320b7
commit ee4cf4c5fd

View File

@ -6,6 +6,7 @@ import WorkspaceLayout from '@/components/WorkspaceLayout';
import AdminLayout from '@/components/AdminLayout';
import ReviewList from '@/components/ReviewList';
import AdminMemberManage from '@/components/AdminMemberManage';
import OAuthCallback from '@/components/OAuthCallback';
import { createBrowserRouter } from 'react-router-dom';
import { Navigate } from 'react-router-dom';
@ -14,6 +15,7 @@ export const webPath = {
browse: () => '/browse',
workspace: () => '/workspace',
admin: (id: string) => `/admin/${id}`,
oauthCallback: () => '/redirect/oauth2',
};
const router = createBrowserRouter([
@ -69,6 +71,10 @@ const router = createBrowserRouter([
},
],
},
{
path: webPath.oauthCallback(),
element: <OAuthCallback />,
},
]);
export default router;