Next.js Discord

Discord Forum

Hi, is possible to call a route handler only from another route handler or a server action?

Unanswered
Orinoco Crocodile posted this in #help-forum
Open in Discord
Orinoco CrocodileOP
I don't want to expose the name of that route handler, there is a way to restrict it only to a server action or API, maybe with a header in the request?

0 Replies