routes.ts 843 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import type { RouteRecordRaw } from 'vue-router'
  3. const routes: RouteRecordRaw[] = [
  4. {
  5. path: '/account',
  6. name: 'AccountOverview',
  7. props: true,
  8. component: () => import('./views/AccountOverview.vue'),
  9. meta: {
  10. title: __('Account'),
  11. requiresAuth: true,
  12. requiredPermission: ['*'],
  13. hasBottomNavigation: true,
  14. hasHeader: true,
  15. level: 1,
  16. },
  17. },
  18. {
  19. path: '/account/avatar',
  20. name: 'AccountAvatar',
  21. props: true,
  22. component: () => import('./views/AccountAvatar.vue'),
  23. meta: {
  24. title: __('Avatar'),
  25. requiresAuth: true,
  26. requiredPermission: ['user_preferences.avatar'],
  27. hasBottomNavigation: false,
  28. hasHeader: true,
  29. level: 2,
  30. },
  31. },
  32. ]
  33. export default routes