27 lines
630 B
JavaScript
27 lines
630 B
JavaScript
import { createRouter, createWebHistory } from 'vue-router';
|
|
|
|
const Home = () => import('./views/Home.vue');
|
|
const Show = () => import('./views/Show.vue');
|
|
const NotFound = () => import('./views/NotFound.vue');
|
|
|
|
export default createRouter({
|
|
history: createWebHistory(),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: Home,
|
|
},
|
|
{
|
|
path: '/show/:token',
|
|
name: 'Show',
|
|
component: Show,
|
|
},
|
|
{
|
|
path: '/:pathMatch(.*)*',
|
|
name: 'NotFound',
|
|
component: NotFound
|
|
},
|
|
],
|
|
});
|