Protecting Dynamic routs through Server middleware ?
Is there anyway to protect dynamic routs using server middle ware ?
I was using the following:
which was doing fine for my case but i needed to change the routing and now i have a dynamic routes like this
/something/something/[slug]/something
sooo, how am i going to tell the middle ware to protect this rout ?
I really don't want to add a "protected" method at the start of each rout....
1 Reply
i just made it extract the field and put some word in place...