diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-12-07 05:01:08 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-12-07 05:01:08 +0530 |
commit | 4c48edc7905d6fb16b01ea707ee7e730dff78ced (patch) | |
tree | 343839b5c7bcd7abf24ba7ef9f3ba7c33ccf78f8 /src/router | |
parent | 464dac56714f4fb187785abda04bf3f2170af2a2 (diff) |
added view invoice page with print button!0.3.0
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 } + }, ] }) |