140
rated 0 times
[
145]
[
5]
/ answers: 1 / hits: 14540
/ 3 Years ago, fri, february 26, 2021, 12:00:00
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?
More From » node.js