We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e7b00f + f13391d commit 5ef36d7Copy full SHA for 5ef36d7
README.md
@@ -50,6 +50,15 @@ See these pages for more info:
50
51
[Github API OAuth Overview] (http://developer.github.com/v3/oauth)
52
53
+Enterprise Github instances may be specified using the `apiUrl` option:
54
+
55
+```js
56
+var github = new Github({
57
+ apiUrl: "https://serverName/api/v3",
58
+ ...
59
+});
60
+```
61
62
## Repository API
63
64
github.js
@@ -33,9 +33,9 @@
33
}
34
35
36
- var API_URL = 'https://api.github.com';
37
38
var Github = function(options) {
+ var API_URL = options.apiUrl || 'https://api.github.com';
39
40
// HTTP Request Abstraction
41
// =======
0 commit comments