require auth for users list page because itll be easier to test with
Some checks failed
Build and Deploy Frontend / build-and-deploy (push) Failing after 4s
Some checks failed
Build and Deploy Frontend / build-and-deploy (push) Failing after 4s
This commit is contained in:
@@ -13,7 +13,7 @@ const routes = [
|
|||||||
{ path: "/", component: index },
|
{ path: "/", component: index },
|
||||||
{ path: "/login", component: LoginForm },
|
{ path: "/login", component: LoginForm },
|
||||||
{ path: "/register", component: RegisterForm },
|
{ path: "/register", component: RegisterForm },
|
||||||
{ path: "/users", component: UsersList },
|
{ path: "/users", component: UsersList, { requiresAuth: true } },
|
||||||
{ path: "/user/new", component: UserForm, meta: { requiresAuth: true } },
|
{ path: "/user/new", component: UserForm, meta: { requiresAuth: true } },
|
||||||
{ path: "/user/:id", component: UserForm, meta: { requiresAuth: true } }
|
{ path: "/user/:id", component: UserForm, meta: { requiresAuth: true } }
|
||||||
]; // I really like this
|
]; // I really like this
|
||||||
|
|||||||
Reference in New Issue
Block a user