mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 01:58:56 +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() {
|
function GetResults() {
|
||||||
var SearchValue = document.querySelector('input[type="search"]').value
|
var SearchValue = document.querySelector('input[type="search"]').value
|
||||||
var YouTubeSuggestions = document.querySelector('.suggestions')
|
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(response => response.json())
|
||||||
.then(data => {YouTubeSuggestions.innerHTML = ListOfSuggestionsYT(data)})
|
.then(data => {YouTubeSuggestions.innerHTML = ListOfSuggestionsYT(data)})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue