-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Middleware for Control Panel Dashboard #809
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Now that we are starting development on the front-end of the control panel, we need to have a navigation guard that will only let logged in admins see the dashboard page. You can check out documentation around route guards here. We will probably want to do it per route to avoid the method being called at every navigation.
Spec
In this issue, we only need to create the middleware function that will get checked when a user navigates to the main control panel view. This code can live in a new middleware folder,
src/middleware
.Copilot Prompts
Using Vue Router 3, show me how to implement a per-route navigation guard that executes a function.
How does Vue Router work?
How does routing on a single-page application differ from a server-side rendered web app?
Target Date: 12/31/2023 📆
The text was updated successfully, but these errors were encountered: