Allow using alternate api endpoint

- Allows github enterprise users to use this handler