move router config to controller