Skip to content

Route guard #410

Closed Answered by NamesMT
ghost asked this question in Q&A
Aug 28, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

After taking a peek at vite-plugin-pages, I think we could use custom metadata and extendRoute to implement guards.

Edit:
Actually, extendRoute is not even needed, you could use the custom metadata along with a beforeEach that handles everything.
It is, however, needed if you want to add per-route guards (beforeEnter).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MarcoSantana
Comment options

@mergeMarc
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants