Slater8242
Slater8242
NNuxt
Created by Slater8242 on 3/19/2025 in #❓・help
Issues with Nested routing
Hello, I am having hard time with nested routing. I have roles, guest, user and admin roles, and want to restrict guest from accessing user and admin routes, once logged in restrict user from accessing admin's routes and vice versa. I have added middleware to index.vue inside the folder but it only guards index file. I am looking for middleware guard all the files in the folder. here is the structure of the folder --pages |--index.vue |--Investor // Parent Folder |--index.vue // Parent Main page |--overview.vue // Child page |--profile.vue // Child page
5 replies