Home

Issue: 2453

nuxt custom router middleware /dir/

[issue link]

Hi,
I know how to create a middleware for each route, and in my case auth guards, but is there any other way just to add the middleware in nuxt.confif.js to guard all /users/ directory for example or /business/

I can’t figure that out if that can be done, and until now I’m doing it manually by adding the middleware to to every page.

Cheers 👍

This question is available on Nuxt.js community (#c2128)