FitTrackee/fittrackee_client/src/router/index.ts

18 lines
356 B
TypeScript
Raw Normal View History

2021-07-25 13:23:25 +02:00
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
2021-07-25 13:34:44 +02:00
import Dashboard from '@/views/DashBoard.vue'
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-25 13:23:25 +02:00
]
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes,
2021-07-25 13:23:25 +02:00
})
2021-07-25 13:23:25 +02:00
export default router