|
- import { lazy } from 'react';
-
- // project import
- import Loadable from 'components/Loadable';
- // import MinimalLayout from 'layout/MinimalLayout';
- import MainLayout from 'layout/MainLayout';
-
- // render - login
- const AuthLogin = Loadable(lazy(() => import('pages/authentication/Login')));
- const AuthRegister = Loadable(lazy(() => import('pages/authentication/RegisterCustom')));
- const RegisterForm = Loadable(lazy(() => import('pages/authentication/Register')));
- const BusRegisterForm = Loadable(lazy(() => import('pages/authentication/BusRegister')));
- const IAmSmartRegister = Loadable(lazy(() => import('pages/authentication/IAmSmartRegister')));
- const ErrorPage = Loadable(lazy(() => import('pages/extra-pages/ErrorPage')));
- const IAmSmart_FailCallback = Loadable(lazy(() => import('pages/iAmSmart/FailCallback')));
- const IAmSmart_SuccessCallback = Loadable(lazy(() => import('pages/iAmSmart/SuccessCallback')));
- const IAmSmart_AuthCallback = Loadable(lazy(() => import('pages/iAmSmart/AuthCallback')));
- const IAmSmart_RegistryCallback = Loadable(lazy(() => import('pages/iAmSmart/RegistryCallback')));
-
- //TODO: this page for testing only, please remove at prod
- const TestMailPage = Loadable(lazy(() => import('pages/pnspsNotifyTest')));
- const VerifyPage = Loadable(lazy(() => import('pages/authentication/Verify')));
-
- // ==============================|| AUTH ROUTING ||============================== //
-
- const LoginRoutes = {
- path: '/',
- element: <MainLayout />,
- children: [
- {//TODO: this page for testing only, please remove at prod
- path: 'testMailPage',
- element: <TestMailPage/>
- },
- {
- path: 'login',
- element: <AuthLogin />
- },
- {
- path: 'register',
- element: <AuthRegister />
- },
- {
- path: 'registerFrom',
- element: <RegisterForm />
- },
- {
- path: 'registerFromOrganization',
- element: <BusRegisterForm />
- },
- {
- path: 'iAmSmartRegisterFrom',
- element: <IAmSmartRegister />
- },
- {
- path: 'error',
- element: <ErrorPage/>
- },
- {
- path: 'iamsmart/authcallback',
- element: <IAmSmart_AuthCallback/>
- },
- {
- path: 'iamsmart/registrycallback',
- element: <IAmSmart_RegistryCallback/>
- },
- {
- path: 'iamsmart/loginfallback',
- element: <IAmSmart_FailCallback/>
- },
- {
- path: 'iamsmart/logincallback',
- element: <IAmSmart_SuccessCallback/>
- },
- {
- path: 'testMailPage',
- element: <TestMailPage/>
- },
- {
- path: 'verify/:verifyCode/:email',
- element: <VerifyPage/>
- }
- ]
- };
-
- export default LoginRoutes;
|