This commit is contained in:
Cory Dransfeldt 2024-10-19 13:57:53 -07:00
parent 4eefbd92fc
commit 085bf183b0
No known key found for this signature in database
2 changed files with 1 additions and 9 deletions

View file

@ -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'

View file

@ -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) => {