import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' import Dashboard from '@/views/DashBoard.vue' import NotFound from '@/views/NotFound.vue' const routes: Array = [ { path: '/', name: 'Dashboard', component: Dashboard, }, { path: '/:pathMatch(.*)*', name: 'not-found', component: NotFound }, ] const router = createRouter({ history: createWebHistory(process.env.BASE_URL), routes, }) export default router