Endpoints can have multiple input connections but only one output

In order to enforce the restrictions we need access to a list of all the routes, initially I wanted to add this to the endpoint itself, but couldn't find a clean way to let it access the routes. I am open to suggestions on how to do this better. :)