From 085bf183b00d1653b721dbfdeec3d3cd0d1825d8 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 19 Oct 2024 13:57:53 -0700 Subject: [PATCH] fix: url --- src/assets/index.js | 8 -------- src/assets/scripts/index.js | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 src/assets/index.js diff --git a/src/assets/index.js b/src/assets/index.js deleted file mode 100644 index fa9969dc..00000000 --- a/src/assets/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import './js/components/api-text.js' -import './js/components/select-pagination.js' -import './js/components/mastodon-post.js' -import './js/components/theme-toggle.js' -import './js/components/youtube-video-element.js' - -import './css/index.css' -import './js/index.js' \ No newline at end of file diff --git a/src/assets/scripts/index.js b/src/assets/scripts/index.js index dc37c302..f66daafc 100644 --- a/src/assets/scripts/index.js +++ b/src/assets/scripts/index.js @@ -173,7 +173,7 @@ window.addEventListener('load', () => { const loadSearchIndex = async (query = '', types = []) => { const typeQuery = types.join(',') - const response = await fetch(`https://coryd.dev/api/search-beta?q=${query}&type=${typeQuery}`) + const response = await fetch(`https://coryd.dev/api/search?q=${query}&type=${typeQuery}`) const index = await response.json() resultsById = index.reduce((byId, result) => {