Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 8c6483b

Browse files
committed
Export the DOTCOM endpoint
1 parent c3eef68 commit 8c6483b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/models/endpoint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ class Endpoint {
3030
}
3131

3232
// API endpoint for GitHub.com
33-
const dotcomEndpoint = new Endpoint('github.com', 'api.github.com', []);
33+
export const DOTCOM = new Endpoint('github.com', 'api.github.com', []);
3434

3535
export function getEndpoint(host) {
3636
if (host === 'github.com') {
37-
return dotcomEndpoint;
37+
return DOTCOM;
3838
} else {
3939
return new Endpoint(host, host, ['api', 'v3']);
4040
}

0 commit comments

Comments
 (0)