mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
30 lines
809 B
TypeScript
30 lines
809 B
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [{ path: '', component: () => import('pages/IndexPage.vue') }],
|
|
},
|
|
{
|
|
path: '/',
|
|
name: '',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [{ path: 'home', name: 'home', component: () => import('pages/HomePage.vue') }],
|
|
},
|
|
{
|
|
path: '/',
|
|
name: '',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [{ path: 'game', name: 'game', component: () => import('pages/GamePage.vue') }],
|
|
},
|
|
|
|
// Always leave this as last one,
|
|
// but you can also remove it
|
|
{
|
|
path: '/:catchAll(.*)*',
|
|
component: () => import('pages/ErrorNotFound.vue'),
|
|
},
|
|
];
|
|
|
|
export default routes;
|