NuxtN
Nuxt2y ago
Phillip

Private server routes

Hello guys, how can i flag my nuxt 3 api routes as private meaning they can only be accessed from the server itself and is not viewable by the user?

Since every API file I put inside /server/api, but also /server/, will be accessible by other users. How can I prevent this?
Was this page helpful?