2021-07-10 04:38:42 +12:00
|
|
|
import { RouteRecordRaw } from 'vue-router'
|
|
|
|
|
|
|
|
const routes: RouteRecordRaw[] = [
|
2023-09-09 09:54:44 +12:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Default pathing
|
|
|
|
*/
|
2021-07-10 04:38:42 +12:00
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
component: () => import('layouts/MainLayout.vue'),
|
2023-08-19 20:43:21 +12:00
|
|
|
children: [{ path: '', component: () => import('pages/IndexPage.vue') }]
|
2021-07-10 04:38:42 +12:00
|
|
|
},
|
|
|
|
|
2023-09-09 09:54:44 +12:00
|
|
|
/**
|
|
|
|
* Component testing pathing
|
2023-11-23 12:01:15 +13:00
|
|
|
* ONLY for singular component testing purposes
|
2023-09-09 09:54:44 +12:00
|
|
|
*/
|
|
|
|
{
|
|
|
|
path: '/componentTesting/:componentName',
|
|
|
|
component: () => import('layouts/ComponentTestingLayout.vue'),
|
|
|
|
children: [
|
|
|
|
{ path: '', component: () => import('pages/ComponentTesting.vue') }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2023-11-23 12:01:15 +13:00
|
|
|
* Error page - 404
|
2023-09-09 09:54:44 +12:00
|
|
|
* Always leave this as last one, but you can also remove it
|
|
|
|
*/
|
2021-07-10 04:38:42 +12:00
|
|
|
{
|
|
|
|
path: '/:catchAll(.*)*',
|
2023-08-19 20:43:21 +12:00
|
|
|
component: () => import('pages/ErrorNotFound.vue')
|
2021-07-10 04:38:42 +12:00
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
export default routes
|