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 b5a7f08 commit c5fbf9dCopy full SHA for c5fbf9d
scripts/download.js
@@ -33,7 +33,7 @@ async function cacheResources() {
33
const cache = {};
34
35
for (const name of resources) {
36
- let url = `https://raw.githubusercontent.com/johnlindquist/swapi-json-server/master/${name}.json`;
+ let url = `https://swapi.dev/api/${name}/`;
37
38
while (url != null) {
39
console.error(url);
@@ -45,7 +45,7 @@ async function cacheResources() {
45
cache[normalizeUrl(obj.url)] = obj;
46
}
47
48
- url = data.next;
+ url = data.next ? data.next.replace('http:', 'https:') : null;
49
50
51
0 commit comments