kamilcraft-cv/src/router.js
Kamil Niemczycki 2c463543b7
- Update project
* - 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
2023-08-07 10:31:22 +02:00

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
},
],
});