routes.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import { lazy } from 'react';
  2. import URLInfo from './constants/URLInfo';
  3. export const routes = [
  4. {
  5. path: URLInfo.HOME,
  6. title: '홈',
  7. exact: true,
  8. component: lazy(() => import('@src/pages/Home')),
  9. },
  10. {
  11. path: URLInfo.EXPLORE,
  12. title: '탐색하기',
  13. exact: true,
  14. component: lazy(() => import('@src/pages/Explore')),
  15. },
  16. {
  17. path: URLInfo.ACTIVITY,
  18. title: '활동',
  19. exact: true,
  20. component: lazy(() => import('@src/pages/Activity')),
  21. },
  22. {
  23. path: [URLInfo.LOGIN, URLInfo.REGISTER],
  24. title: '로그인',
  25. exact: true,
  26. component: lazy(() => import('@src/pages/Login')),
  27. },
  28. {
  29. path: [URLInfo.CREATE, URLInfo.RESALE],
  30. title: 'Create item',
  31. exact: true,
  32. component: lazy(() => import('@src/pages/Create')),
  33. },
  34. {
  35. path: [URLInfo.SALE, URLInfo.TOKEN],
  36. title: '아이템 상세',
  37. exact: true,
  38. component: lazy(() => import('@src/pages/Sale')),
  39. },
  40. {
  41. path: [URLInfo.PROFILE_COLLECTION, URLInfo.COLLECTION_EDIT],
  42. title: '프로필 컬렉션',
  43. exact: true,
  44. component: lazy(() => import('@src/pages/ProfileCollection')),
  45. },
  46. {
  47. path: URLInfo.USER_EDIT,
  48. title: '프로필 편집',
  49. exact: true,
  50. component: lazy(() => import('@src/pages/ProfileEdit')),
  51. },
  52. {
  53. path: URLInfo.PROFILE_USER,
  54. title: '프로필 유저',
  55. exact: true,
  56. component: lazy(() => import('@src/pages/ProfileUser')),
  57. },
  58. {
  59. path: URLInfo.GUIDE,
  60. title: '사용방법',
  61. exact: true,
  62. component: lazy(() => import('@src/pages/Guide')),
  63. },
  64. {
  65. path: URLInfo.GUIDE_DETAIL,
  66. title: '사용방법 상세',
  67. exact: true,
  68. component: lazy(() => import('@src/pages/GuideDetail')),
  69. },
  70. {
  71. path: URLInfo.LOGIN_CALLBACK,
  72. title: '로그인 callback',
  73. exact: true,
  74. component: lazy(() => import('@src/pages/SNSLoginCallback')),
  75. },
  76. {
  77. path: URLInfo.ERROR,
  78. title: '에러 페이지',
  79. exact: true,
  80. component: lazy(() => import('@src/pages/Error')),
  81. },
  82. {
  83. path: URLInfo.RANKING,
  84. title: '랭킹',
  85. exact: true,
  86. component: lazy(() => import('@src/pages/Ranking')),
  87. }
  88. ];