Use correct api for github enterprise