Multiple ingress in a shared environment

We are sharing an ingress controller among different team, and nothing would prevent two users deploying app.domain.com/myapp but in different namespaces. Which one would take precedence ? Is there any safe way of sharing an ingress across teams?