import { createRouter, createWebHashHistory } from 'vue-router';
const { VITE_APP_NAME } = import.meta.env;

let routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('@/views/welcome.vue'),
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login.vue'),
    },
    {
        path: '/monitor',
        name: 'monitor',
        component: () => import('@projectB/views/monitor/index.vue'),
    },
    {
        path: '/error',
        name: 'error',
        component: () => import('@projectB/views/error/index.vue'),
    },
];

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

export default router;
