From 2376e26dc970e9bd90cd6cedb019860f5a5b1936 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 30 Jul 2021 01:51:25 +0200 Subject: Added Orders page for users to see their purchases. --- client/src/router/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client/src/router') diff --git a/client/src/router/index.js b/client/src/router/index.js index ee78676..55d8df2 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -4,6 +4,7 @@ import Product from '@/views/Product.vue'; import Checkout from '@/views/Checkout.vue'; import Login from '@/views/Login.vue'; import Register from '@/views/Register.vue'; +import Orders from '@/views/Orders'; import store from '@/store/index'; @@ -38,6 +39,14 @@ const routes = [ meta: { guest: true } + }, + { + path: '/orders', + name: 'Orders', + component: Orders, + meta: { + auth: true + } } ]; -- cgit v1.2.3