diff options
Diffstat (limited to 'src/router')
-rw-r--r-- | src/router/index.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/router/index.ts b/src/router/index.ts index 9817a1e..496f5d0 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,6 +10,7 @@ import AllItems from '../views/AllItems.vue' import NewItem from '../views/NewItem.vue' import NewInvoice from '../views/NewInvoice.vue' import EditInvoice from '../views/EditInvoice.vue' +import ViewInvoice from '../views/ViewInvoice.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -69,11 +70,17 @@ const router = createRouter({ meta: { isAuth: true } }, { - path: '/invoice/edit-draft/:id', - name: 'edit-draft', + path: '/invoice/edit/:id', + name: 'edit-invoice', component: EditInvoice, meta: { isAuth: true } }, + { + path: '/invoice/view/:id', + name: 'view-invoice', + component: ViewInvoice, + meta: { isAuth: true } + }, ] }) |