Move url configuration to the endpoint