I am using Next.js API routes - https://nextjs.org/docs/api-routes/introduction but I don't know how to protect them from public.
Now those routes are public in my production server.
For example: when I go to mysite.com/api/cats in browser, it returns -
{ success: true, data: [...] }
Please help, how do I hide those API routes from public?