feat: added ts
This commit is contained in:
22
client/src/router/index.ts
Normal file
22
client/src/router/index.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { createRouter, createWebHistory } from '@ionic/vue-router';
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
import TimersList from '@/views/TimersList/TimersList.vue';
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/timers'
|
||||
},
|
||||
{
|
||||
path: '/timers',
|
||||
name: 'Timers',
|
||||
component: TimersList
|
||||
}
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user