G-EIP-700-TLS-7-1-eip-steph.../website/src/router.js

25 lines
492 B
JavaScript
Raw Permalink Normal View History

2024-10-26 20:53:30 +00:00
// src/router.js
import { createRouter, createWebHistory } from 'vue-router';
import HomePage from './components/HomePage.vue';
import ProjectDescription from './components/ProjectDescription.vue';
const routes = [
{
path: '/',
name: 'HomePage',
component: HomePage,
},
{
path: '/description',
name: 'ProjectDescription',
component: ProjectDescription,
},
];
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;