107 lines
2.4 KiB
TypeScript
107 lines
2.4 KiB
TypeScript
import { RouteRecordRaw } from 'vue-router';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [
|
|
{
|
|
path: '',
|
|
component: () => import('pages/IndexPage.vue'),
|
|
name: 'index',
|
|
},
|
|
{
|
|
path: '/boat',
|
|
component: () => import('pages/BoatPage.vue'),
|
|
name: 'boat',
|
|
},
|
|
{
|
|
path: '/booking',
|
|
component: () => import('pages/BookingPage.vue'),
|
|
name: 'booking',
|
|
},
|
|
{
|
|
path: '/certification',
|
|
component: () => import('pages/CertificationPage.vue'),
|
|
name: 'certification',
|
|
},
|
|
{
|
|
path: '/task',
|
|
component: () => import('pages/TaskPage.vue'),
|
|
name: 'task',
|
|
},
|
|
{
|
|
path: '/checklist',
|
|
component: () => import('pages/ChecklistPage.vue'),
|
|
name: 'checklist',
|
|
},
|
|
{
|
|
path: '/profile',
|
|
component: () => import('pages/ProfilePage.vue'),
|
|
name: 'profile',
|
|
},
|
|
{
|
|
path: '/reference',
|
|
component: () => import('pages/ReferencePage.vue'),
|
|
name: 'reference',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/admin',
|
|
component: () => import('layouts/AdminLayout.vue'),
|
|
children: [
|
|
{
|
|
path: '/user',
|
|
component: () => import('pages/admin/UserAdminPage.vue'),
|
|
name: 'useradmin',
|
|
},
|
|
{
|
|
path: '/boat',
|
|
component: () => import('pages/admin/BoatAdminPage.vue'),
|
|
name: 'boatadmin',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/login',
|
|
component: () => import('pages/LoginPage.vue'),
|
|
name: 'login',
|
|
meta: {
|
|
publicRoute: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/terms-of-service',
|
|
component: () => import('pages/TermsOfServicePage.vue'),
|
|
name: 'tospage',
|
|
meta: {
|
|
publicRoute: true,
|
|
},
|
|
},
|
|
{
|
|
path: '/privacy-policy',
|
|
component: () => import('pages/PrivacyPolicyPage.vue'),
|
|
name: 'privacy-policy',
|
|
meta: {
|
|
publicRoute: true,
|
|
},
|
|
},
|
|
// {
|
|
// path: '/register',
|
|
// component: () => import('pages/RegisterPage.vue'),
|
|
// name: 'register'
|
|
// meta: {
|
|
// accountRoute: true,
|
|
// }
|
|
// },
|
|
// Always leave this as last one,
|
|
// but you can also remove it
|
|
{
|
|
path: '/:catchAll(.*)*',
|
|
component: () => import('pages/ErrorNotFound.vue'),
|
|
},
|
|
];
|
|
|
|
export default routes;
|