소스 검색

fixed swapi url

unknown 2 년 전
부모
커밋
d4331332cf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 = {};