Feature/Auth: implement user authentication #3
@@ -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, { requiresAuth: true } },
|
{ path: "/users", component: UsersList, meta: { 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