I tried to have the same routing behaviour with Hugo. To do this, I have to be able to get all posts under every collection.
I don't want to type collection names and do it manually, since I want it to be generalised as much as it can be. Javascript doesn't allow me to use map, because clearly I can't use await inside of a map function.
Astro.glob() doesn't really work well for me, because I need the attributes returned from getCollection