feat(subgen): new api is now injected in the route config