25 lines
492 B
JavaScript
25 lines
492 B
JavaScript
// 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;
|