Ver código fonte

fixed swapi url

unknown 3 anos atrás
pai
commit
d4331332cf
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      javascript/hw.js

+ 1 - 1
javascript/hw.js

@@ -409,7 +409,7 @@ const cachedFetchStarWars = async () => {
 	const lc = await localStorage.getItem('data');
 	if (lc) return JSON.parse(lc);
 
-	const data = await fetch('https://swapi.dev/api/people/1/')
+	const data = await fetch('https://swapi.py4e.com/api/people/1/')
 		.then((res) => res.json())
 		.then((data) => {
 			const newData = {};