Files
apollo/packages/test-e2e/src/router.js
T
2022-06-23 15:07:15 +02:00

47 lines
1.0 KiB
JavaScript

import { createRouter, createWebHistory } from 'vue-router'
import UserLogin from './components/UserLogin.vue'
import WelcomeView from './components/WelcomeView.vue'
import ChannelView from './components/ChannelView.vue'
import PartialError from './components/PartialError.vue'
import ManualAddSmartQuery from './components/ManualAddSmartQuery.vue'
export default createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
name: 'home',
component: WelcomeView,
meta: {
private: true,
},
},
{
path: '/login',
name: 'login',
component: UserLogin,
},
{
path: '/chan/:id',
name: 'channel',
component: ChannelView,
props: true,
meta: {
private: true,
},
},
{
path: '/partial-error',
component: PartialError,
},
{
path: '/manual-add-smart-query',
component: ManualAddSmartQuery,
},
{
path: '/update-cache',
component: () => import('./components/UpdateCache.vue'),
},
],
})