14 lines
880 B
TypeScript
14 lines
880 B
TypeScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import Overview from './views/Overview.vue'
|
|
import CustomerPortal from './views/CustomerPortal.vue'
|
|
import Checkout from './views/Checkout.vue'
|
|
export default createRouter({
|
|
history: createWebHistory(),
|
|
routes: [
|
|
...[{path:'/',view:'dashboard'},{path:'/licenses',view:'licenses'},{path:'/customers',view:'customers'},{path:'/products',view:'products'},{path:'/orders',view:'orders'},{path:'/payments',view:'payments'},{path:'/releases',view:'releases'},{path:'/integration',view:'integration'},{path:'/audit',view:'audit'},{path:'/settings',view:'settings'},{path:'/admins',view:'admins'}].map(({path,view})=>({path,component:Overview,meta:{view}})),
|
|
{path:'/checkout',component:Checkout,meta:{public:true}},
|
|
{path:'/customer',component:CustomerPortal},
|
|
{path:'/:pathMatch(.*)*',redirect:'/'}
|
|
]
|
|
})
|