FitTrackee/fittrackee_client/src/router/index.ts

26 lines
580 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'
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'
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-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
]
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