routes.ts 545 B

123456789101112131415161718192021
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { RouteRecordRaw } from 'vue-router'
  3. const route: RouteRecordRaw[] = [
  4. {
  5. path: '/tickets/create',
  6. name: 'TicketCreate',
  7. props: false,
  8. component: () => import('./views/TicketCreate.vue'),
  9. alias: ['/ticket/create', '/ticket/create/:pathMatch(.*)*'],
  10. meta: {
  11. title: __('New Ticket'),
  12. requiresAuth: true,
  13. requiredPermission: ['ticket.agent', 'ticket.customer'],
  14. level: 2,
  15. },
  16. },
  17. ]
  18. export default route