mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 11:57:48 +01:00
change api url :3
This commit is contained in:
parent
acb2cd0db3
commit
599b5cac54
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ document.querySelector('input[type="search"]').addEventListener('input', functio
|
|||
function GetResults() {
|
||||
var SearchValue = document.querySelector('input[type="search"]').value
|
||||
var YouTubeSuggestions = document.querySelector('.suggestions')
|
||||
fetch(window.location.origin + `/api/improving-poke/getsugesstions?q=${SearchValue}`)
|
||||
fetch(window.location.origin + `/api/improving-poke/suggestions?q=${SearchValue}`)
|
||||
.then(response => response.json())
|
||||
.then(data => {YouTubeSuggestions.innerHTML = ListOfSuggestionsYT(data)})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue