aboutsummaryrefslogtreecommitdiff
path: root/client/src/router
diff options
context:
space:
mode:
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
+ }
}
];