From a68a8ca1b13cf234bc026db3ad49cee89bac4546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=90=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Tue, 13 Jun 2023 16:26:27 +0400 Subject: [PATCH] LabWork06 VUE WORK --- frontend/spa-vue/src/routes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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},