FitTrackee/fittrackee_client/src/router/index.ts
2021-11-03 18:26:47 +01:00

20 lines
472 B
TypeScript

import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Dashboard from '@/views/DashBoard.vue'
import NotFound from '@/views/NotFound.vue'
const routes: Array<RouteRecordRaw> = [
{
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