Let router be inherited by route script.