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.
1 parent ffd7226 commit f13391dCopy full SHA for f13391d
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
@@ -29,9 +29,9 @@
29
}
30
31
32
- var API_URL = 'https://api.github.com';
33
34
var Github = function(options) {
+ var API_URL = options.apiUrl || 'https://api.github.com';
35
36
// HTTP Request Abstraction
37
// =======
0 commit comments