Skip to content

Commit

Permalink
feat: route block
Browse files Browse the repository at this point in the history
  • Loading branch information
mnenie committed Jul 20, 2024
1 parent 8f710a5 commit aef4822
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/providers/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const router = createRouter({
router.beforeEach((to, from) => {
// TODO(@mnenie): Add guards logic
// Needs to add guard auth logic in router
// if (to.meta.requiresAuth === true) {
// return router.push({ name: RouteNames.login });
// }
if (to.meta.requiresAuth === true) {
return router.push({ name: RouteNames.login });
}
});

0 comments on commit aef4822

Please sign in to comment.