26 lines
491 B
JavaScript
26 lines
491 B
JavaScript
|
import { createRouter, createWebHistory } from 'vue-router'
|
||
|
import Home from './views/home.vue'
|
||
|
|
||
|
const router = createRouter({
|
||
|
history: createWebHistory(),
|
||
|
routes: [
|
||
|
{
|
||
|
path: '/',
|
||
|
name: 'home',
|
||
|
component: Home
|
||
|
},
|
||
|
{
|
||
|
path: '/about',
|
||
|
name: 'about',
|
||
|
component: () => import('./views/about.vue')
|
||
|
},
|
||
|
{
|
||
|
path: '/request',
|
||
|
name: 'request',
|
||
|
component: () => import('./views/request.vue')
|
||
|
}
|
||
|
]
|
||
|
})
|
||
|
|
||
|
export default router
|