next13 app dir - multiple route handlers in one folder?

Is it possible to have multiple route handlers in the app/api dir in the same folder? It seems like it would get out of control pretty fast if you need to create a folder for each route

Compared to trpc for example where you could have multiple routes under a common path.

You can do so with appDir route handlers but you’d have so many more folders and files… is this the only way or can you avoid all these folders for each route?
Was this page helpful?