diff --git a/client/src/router/index.ts b/client/src/router/index.ts index 5c7d3b3..e80ac1c 100644 --- a/client/src/router/index.ts +++ b/client/src/router/index.ts @@ -13,7 +13,7 @@ const routes = [ { path: "/", component: index }, { path: "/login", component: LoginForm }, { path: "/register", component: RegisterForm }, - { path: "/users", component: UsersList, { requiresAuth: true } }, + { path: "/users", component: UsersList, meta: { requiresAuth: true } }, { path: "/user/new", component: UserForm, meta: { requiresAuth: true } }, { path: "/user/:id", component: UserForm, meta: { requiresAuth: true } } ]; // I really like this