kamilcraft-cv/src/router.js
Kamil Niemczycki 7a5412368f
- Added eslint and prettier
* - add eslint and prettier

* - reformatted code

* - update readme
2023-08-07 12:20:06 +02:00

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