File tree Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ interface LukeSkywalker {
1010} 
1111
1212export  const  fetchLukeSkywalker  =  async  ( ) : LukeSkywalker  =>  { 
13-   const  data  =  await  fetch ( "https://swapi.dev/api/people/1" ) . then ( ( res )  =>  { 
14-     return  res . json ( ) ; 
15-   } ) ; 
13+   const  data  =  await  fetch ( "https://swapi.py4e.com/api/people/1" ) . then ( 
14+     ( res )  =>  { 
15+       return  res . json ( ) ; 
16+     } 
17+   ) ; 
1618
1719  return  data ; 
1820} ; 
Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ interface LukeSkywalker {
1010} 
1111
1212export  const  fetchLukeSkywalker  =  async  ( ) : Promise < LukeSkywalker >  =>  { 
13-   const  data  =  await  fetch ( "https://swapi.dev/api/people/1" ) . then ( ( res )  =>  { 
14-     return  res . json ( ) ; 
15-   } ) ; 
13+   const  data  =  await  fetch ( "https://swapi.py4e.com/api/people/1" ) . then ( 
14+     ( res )  =>  { 
15+       return  res . json ( ) ; 
16+     } 
17+   ) ; 
1618
1719  return  data ; 
1820} ; 
Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ interface LukeSkywalker {
1010} 
1111
1212export  const  fetchLukeSkywalker  =  async  ( )  =>  { 
13-   const  data  =  await  fetch ( "https://swapi.dev/api/people/1" ) . then ( ( res )  =>  { 
14-     return  res . json ( ) ; 
15-   } ) ; 
13+   const  data  =  await  fetch ( "https://swapi.py4e.com/api/people/1" ) . then ( 
14+     ( res )  =>  { 
15+       return  res . json ( ) ; 
16+     } 
17+   ) ; 
1618
1719  return  data  as  LukeSkywalker ; 
1820} ; 
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ interface LukeSkywalker {
1111
1212export  const  fetchLukeSkywalker  =  async  ( )  =>  { 
1313  const  data : LukeSkywalker  =  await  fetch ( 
14-     "https://swapi.dev /api/people/1" 
14+     "https://swapi.py4e.com /api/people/1" 
1515  ) . then ( ( res )  =>  { 
1616    return  res . json ( ) ; 
1717  } ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments