* - update port for developmnet mode * - fix style for source code * - remove default import - defineProps * - add robots.txt * - update vite config * - prepared .env files - production, development * - update pages * - fix development port * - update skills * - update body style * - update links * - update index header
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
|
|
},
|
|
],
|
|
});
|