From 57d19f5326d88031dc28eb3058e9e13371cdb18f Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 3 Jul 2024 08:47:01 +0000 Subject: [PATCH] change api url :3 --- html/partials/search.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/partials/search.ejs b/html/partials/search.ejs index 76779672..df40bede 100644 --- a/html/partials/search.ejs +++ b/html/partials/search.ejs @@ -8,7 +8,7 @@ @licstart The following is the entire license notice for the JavaScript code in this page. -Copyright (C) 2024 SudoVanilla +Copyright (C) 2024 Poke Project The JavaScript code in this page is free software: you can redistribute it and/or modify it under the terms of the GNU @@ -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(`https://yt.sudovanilla.org/api/v1/search/suggestions?q=${SearchValue}`) + fetch(window.location.origin + `/api/improving-poke/getsugesstions?q=${SearchValue}`) .then(response => response.json()) .then(data => {YouTubeSuggestions.innerHTML = ListOfSuggestionsYT(data)}) }