Got the module updating the router config by creating a customer RouterFactory