Skip to content

Commit

Permalink
docs(autocomplete): fix the Star Wars API URL
Browse files Browse the repository at this point in the history
It's now swapi.tech, not swapi.dev anymore
  • Loading branch information
clementprevot committed Mar 11, 2024
1 parent 8e6d968 commit dbe35c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ const debouncedLoad = debounce((newValue: string, setArgs, onSelect) => {

const promises = []
promises.push(
fetch(`https://swapi.dev/api/people/?search=${newValue}`, {
fetch(`https://swapi.tech/api/people/?search=${newValue}`, {
signal: abort?.signal,
}),
)
promises.push(
fetch(`https://swapi.dev/api/planets/?search=${newValue}`, {
fetch(`https://swapi.tech/api/planets/?search=${newValue}`, {
signal: abort?.signal,
}),
)
Expand Down

0 comments on commit dbe35c5

Please sign in to comment.