2021-07-25 13:23:25 +02:00
|
|
|
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
|
2021-08-11 22:21:26 +02:00
|
|
|
|
2021-07-25 13:34:44 +02:00
|
|
|
import Dashboard from '@/views/DashBoard.vue'
|
2021-08-08 11:49:01 +02:00
|
|
|
import Login from '@/views/Login.vue'
|
2021-08-07 14:28:48 +02:00
|
|
|
import NotFound from '@/views/NotFound.vue'
|
2021-07-24 20:56:37 +02:00
|
|
|
|
|
|
|
const routes: Array<RouteRecordRaw> = [
|
|
|
|
{
|
2021-07-25 13:23:25 +02:00
|
|
|
path: '/',
|
2021-07-25 13:34:44 +02:00
|
|
|
name: 'Dashboard',
|
|
|
|
component: Dashboard,
|
2021-07-24 20:56:37 +02:00
|
|
|
},
|
2021-08-08 11:49:01 +02:00
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
name: 'Login',
|
|
|
|
component: Login,
|
|
|
|
},
|
2021-08-07 14:28:48 +02:00
|
|
|
{ path: '/:pathMatch(.*)*', name: 'not-found', component: NotFound },
|
2021-07-25 13:23:25 +02:00
|
|
|
]
|
2021-07-24 20:56:37 +02:00
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(process.env.BASE_URL),
|
|
|
|
routes,
|
2021-07-25 13:23:25 +02:00
|
|
|
})
|
2021-07-24 20:56:37 +02:00
|
|
|
|
2021-07-25 13:23:25 +02:00
|
|
|
export default router
|