import { createRouter, createWebHistory } from 'vue-router'

const routes= [
    {
        path: '/',
        name: 'Homepage',
        component: ()=>import('./components/Homepage.vue')
    },
    {
        path: '/ContactUs',
        name: 'ContactUs',
        component: ()=>import('./components/ContactUs.vue')
    },
    {
        path: '/Aboutus',
        name: 'Aboutus',
        component: ()=>import('./components/Aboutus.vue')
    },
    {
        path: '/ServiceProcess',
        name: 'ServiceProcess',
        component: ()=>import('./components/ServiceProcess.vue')
    },
    {
        path: '/Examples',
        name: 'Examples',
        component: ()=>import('./components/Examples.vue')
    },
    {
        path: '/Err404',
        name: 'Err404',
        component: ()=>import('./components/Tools/Err404.vue')
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '/Err404'
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
