diff --git a/frontend/spa-vue/src/routes.js b/frontend/spa-vue/src/routes.js index 0211afd..fb580f1 100644 --- a/frontend/spa-vue/src/routes.js +++ b/frontend/spa-vue/src/routes.js @@ -8,9 +8,9 @@ import Error from "./pages/Error.vue"; import {createRouter, createWebHistory} from "vue-router" const routes = [ - {path: '/manufacturer', component: manufacturers}, - {path: '/category', component: categories}, - {path: '/product', component: products}, + {path: '/manufacturer', component: manufacturers, meta: { requiresAuth: true }}, + {path: '/category', component: categories, meta: { requiresAuth: true }}, + {path: '/product', component: products, meta:{ requiresAuth: true }}, {path: "/users", component: users, meta: { requiresAuth: true, requiresAdmin: true }}, {path: "/login", component: login}, {path: "/registration", component: registration},