Switched WikiTree API address to api.wikitree.com

This commit is contained in:
Przemek Wiech
2020-04-11 15:02:22 +02:00
parent 35e6a91164
commit fa7b0a535d

View File

@@ -78,8 +78,8 @@ async function wikiTreeGet(request: WikiTreeRequest, handleCors: boolean) {
requestData.append(key, request[key]); requestData.append(key, request[key]);
} }
const apiUrl = handleCors const apiUrl = handleCors
? 'https://cors-anywhere.herokuapp.com/https://apps.wikitree.com/api.php' ? 'https://cors-anywhere.herokuapp.com/https://api.wikitree.com/api.php'
: 'https://apps.wikitree.com/api.php'; : 'https://api.wikitree.com/api.php';
const response = await window.fetch(apiUrl, { const response = await window.fetch(apiUrl, {
method: 'POST', method: 'POST',
body: requestData, body: requestData,