v5: Middleware not working with Route.resource #1469
-
version: Issue Based on the type prompts looks like It's expecting something like this Is this a bug or am I missing something ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A resource generates a total of 7 routes, you have to tell on which route to apply the middleware. If it's all the routes. Then simply use the Route.resource().middleware({ '*': 'auth' }) |
Beta Was this translation helpful? Give feedback.
A resource generates a total of 7 routes, you have to tell on which route to apply the middleware.
If it's all the routes. Then simply use the
*
keyword.