Sir your explaination was really awesome, i got doubt that everyone can easily redirect to https://next-amazona.vercel.app/api/products route. sir, Data is everything now a days can you please tell me how to protect this route.I want to access this route if we are the only admin role. not user role.Thank you sir!

Raghunadh Hital Asked question December 13, 2022