import { createRouter, createWebHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' import AboutView from '../views/AboutView.vue' import ContactView from '../views/ContactView.vue' const routes = [ { path: '/', name: 'home', component: HomeView }, { path: '/contact', name: 'contact', component: ContactView }, { path: '/about', name: 'about', component: AboutView } ] const router = createRouter({ history: createWebHistory(process.env.BASE_URL), routes }) export default router