aboutsummaryrefslogtreecommitdiff
path: root/client/src/router
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-30 01:51:25 +0200
committerMateja <mail@matejamaric.com>2021-07-30 01:51:25 +0200
commit2376e26dc970e9bd90cd6cedb019860f5a5b1936 (patch)
tree3bd9c8b07b3a220e66c27630f8dba6574d495000 /client/src/router
parent6467c01cddf7333ff96de21b9ffe830c0d9bc7e4 (diff)
downloadmevn-ecommerce-2376e26dc970e9bd90cd6cedb019860f5a5b1936.tar.gz
mevn-ecommerce-2376e26dc970e9bd90cd6cedb019860f5a5b1936.zip
Added Orders page for users to see their purchases.
Diffstat (limited to 'client/src/router')
-rw-r--r--client/src/router/index.js9
1 files changed, 9 insertions, 0 deletions
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
+ }
}
];