The only other possible way would be to first go down the entire route to the last child, let that one create and return an URI object. This has the problem though, that parameters are handled by the most inner route first, which will make wildcard routes impossible to implement.