Allow the use of another endpoint for github gist api

- Allows github enterprise users to use this handler