feat: added router for Timer

This commit is contained in:
Arduinum
2026-04-23 22:18:54 +03:00
committed by Arduinum628
parent 46b8b181da
commit 5b52549404
3 changed files with 93 additions and 75 deletions

View File

@@ -1,6 +1,7 @@
import { createRouter, createWebHistory } from '@ionic/vue-router';
import type { RouteRecordRaw } from 'vue-router';
import TimersList from '@/views/TimersList/TimersList.vue';
import Timer from '@/views/Timer/Timer.vue';
const routes: RouteRecordRaw[] = [
{
@@ -11,6 +12,11 @@ const routes: RouteRecordRaw[] = [
path: '/timers',
name: 'Timers',
component: TimersList
},
{
path: '/timer/:id',
name: 'Timer',
component: Timer
}
];