Feat: OAuth 라우터 코드 추가
This commit is contained in:
parent
e054f320b7
commit
ee4cf4c5fd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user