25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

76 satır
2.2 KiB

  1. import { lazy } from 'react';
  2. // project import
  3. import Loadable from 'components/Loadable';
  4. // import MinimalLayout from 'layout/MinimalLayout';
  5. import MainLayout from 'layout/MainLayout';
  6. // render - login
  7. const AuthLogin = Loadable(lazy(() => import('pages/authentication/Login')));
  8. const AuthRegister = Loadable(lazy(() => import('pages/authentication/RegisterCustom')));
  9. const RegisterForm = Loadable(lazy(() => import('pages/authentication/Register')));
  10. const BusRegisterForm = Loadable(lazy(() => import('pages/authentication/BusRegister')));
  11. const ErrorPage = Loadable(lazy(() => import('pages/extra-pages/ErrorPage')));
  12. const IAmSmart_FailCallback = Loadable(lazy(() => import('pages/iAmSmart/FailCallback')));
  13. const IAmSmart_SuccessCallback = Loadable(lazy(() => import('pages/iAmSmart/SuccessCallback')));
  14. const IAmSmart_AuthCallback = Loadable(lazy(() => import('pages/iAmSmart/AuthCallback')));
  15. //TODO: this page for testing only, please remove at prod
  16. const TestMailPage = Loadable(lazy(() => import('pages/pnspsNotifyTest')));
  17. const VerifyPage = Loadable(lazy(() => import('pages/authentication/Verify')));
  18. // ==============================|| AUTH ROUTING ||============================== //
  19. const LoginRoutes = {
  20. path: '/',
  21. element: <MainLayout />,
  22. children: [
  23. {//TODO: this page for testing only, please remove at prod
  24. path: 'testMailPage',
  25. element: <TestMailPage/>
  26. },
  27. {
  28. path: 'login',
  29. element: <AuthLogin />
  30. },
  31. {
  32. path: 'register',
  33. element: <AuthRegister />
  34. },
  35. {
  36. path: 'registerFrom',
  37. element: <RegisterForm />
  38. },
  39. {
  40. path: 'registerFromOrganization',
  41. element: <BusRegisterForm />
  42. },
  43. {
  44. path: 'error',
  45. element: <ErrorPage/>
  46. },
  47. {
  48. path: 'iamsmart/authcallback',
  49. element: <IAmSmart_AuthCallback/>
  50. },
  51. {
  52. path: 'iamsmart/loginfallback',
  53. element: <IAmSmart_FailCallback/>
  54. },
  55. {
  56. path: 'iamsmart/logincallback',
  57. element: <IAmSmart_SuccessCallback/>
  58. },
  59. {
  60. path: 'testMailPage',
  61. element: <TestMailPage/>
  62. },
  63. {
  64. path: 'verify/:verifyCode/:email',
  65. element: <VerifyPage/>
  66. }
  67. ]
  68. };
  69. export default LoginRoutes;