TanStackT
TanStack13mo ago
11 replies
full-green

Is it possible to add middleware to API routes?

Hi all, is it possible to add middleware to API routes? I need to implement authentication but couldn’t find relevant documentation. Any guidance or resources would be appreciated! Thanks in advance!
Was this page helpful?