accounting/frontend/router.js

17 lines
473 B
JavaScript
Raw Permalink Normal View History

2024-01-16 15:13:04 +00:00
import { createRouter, createWebHistory } from 'vue-router'
2024-01-17 22:02:41 +00:00
import accountOverview from './components/accountOverview.vue'
2024-01-16 16:30:17 +00:00
import budgetDashboard from './components/budgetDashboard.vue'
2024-01-16 15:13:04 +00:00
const routes = [
2024-01-16 16:30:17 +00:00
{ component: budgetDashboard, name: 'budget', path: '/' },
2024-01-17 22:02:41 +00:00
{ component: accountOverview, name: 'account-transactions', path: '/accounts/:accountId', props: true },
2024-01-16 15:13:04 +00:00
]
const router = createRouter({
history: createWebHistory(),
routes,
})
export default router