Explorar o código

fixed swapi url

unknown %!s(int64=2) %!d(string=hai) anos
pai
achega
d4331332cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = {};