From 39d0f807d4f99a08cd26f9b07c001e919bc033d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=BChl?= Date: Tue, 27 May 2025 16:27:16 +0200 Subject: [PATCH] added template for player view with props --- app/src/router/index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/router/index.ts b/app/src/router/index.ts index 6232f89..dac29e0 100644 --- a/app/src/router/index.ts +++ b/app/src/router/index.ts @@ -22,7 +22,17 @@ const routes: Array = [ { path: '/player', component: PlayerView }, { path: '/bullpen', component: BullpenView }, { path: '/stats', component: BullpenListView }, - { path: '/summary', component: BullpenSummaryView } + { path: '/summary', component: BullpenSummaryView }, + // { + // path: '/player/:id', + // name: 'EditPlayer', + // component: () => import('@/views/PlayerView.vue'), + // props: (route) => ({ + // player: route.state?.player || null, // Pass the player from the state if available + // mode: route.query.mode || 'create', // Default to "create" if no query exists + // }), + // }, + ] const router = createRouter({