index.js 422 B

12345678910111213141516171819202122232425
  1. import { lazy } from 'react';
  2. export const ROUTES = [
  3. {
  4. id: 0,
  5. exact: true,
  6. private: true,
  7. path: '/',
  8. component: lazy(() => import('./main')),
  9. },
  10. {
  11. id: 1,
  12. exact: true,
  13. private: false,
  14. path: '/auth',
  15. component: lazy(() => import('./auth')),
  16. },
  17. {
  18. id: 2,
  19. exact: true,
  20. private: false,
  21. path: '/register',
  22. component: lazy(() => import('./register')),
  23. },
  24. ]