Skip to content

Commit a703e6e

Browse files
authored
adding canary graph in constants (#413)
1 parent 7a25b95 commit a703e6e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ export const GRAPH_BASE_URL = "https://graph.microsoft.com/";
2525
* To hold list of the service root endpoints for Microsoft Graph and Graph Explorer for each national cloud.
2626
* Set(iterable:Object) is not supported in Internet Explorer. The consumer is recommended to use a suitable polyfill.
2727
*/
28-
export const GRAPH_URLS = new Set<string>(["graph.microsoft.com", "graph.microsoft.us", "dod-graph.microsoft.us", "graph.microsoft.de", "microsoftgraph.chinacloudapi.cn"]);
28+
export const GRAPH_URLS = new Set<string>(["graph.microsoft.com", "graph.microsoft.us", "dod-graph.microsoft.us", "graph.microsoft.de", "microsoftgraph.chinacloudapi.cn", "canary.graph.microsoft.com"]);

test/common/core/urlParsing.ts

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const testCases = {
4646

4747
// National cloud deployment urls
4848
"https://graph.microsoft.us/v1.0/me": "https://graph.microsoft.us/v1.0/me",
49+
"https://canary.graph.microsoft.us/v1.0/me": "https://canary.graph.microsoft.us/v1.0/me",
4950
"https://dod-graph.microsoft.us/beta/me?$filter=a": "https://dod-graph.microsoft.us/beta/me?$filter=a",
5051
};
5152

0 commit comments

Comments
 (0)