pass the env to the router not only the path