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

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/login',
            name: 'Login',
            component: () => import('../views/Login.vue')
        },
        {
            path: '/',
            redirect: '/dashboard',
        },
        {
            path: '/dashboard',
            name: 'Dashboard',
            component: () => import('../views/Dashboard.vue')
        },
        {
            path: '/radar',
            name: 'Radar',
            component: () => import('../views/Radar.vue')
        },
        {
            path: '/history',
            name: 'History',
            component: () => import('../views/History.vue')
        }
    ]
})

export default router
