1
Fork 0
This commit is contained in:
Korbs 2024-04-15 00:16:36 -04:00
parent 6edbbedde0
commit 199ca7074b
No known key found for this signature in database

View file

@ -1,21 +1,21 @@
--- ---
import { t, changeLanguage } from "i18next"; import { t, changeLanguage } from "i18next"
import Base from "@layouts/Default.astro"; import Base from "@layouts/Default.astro"
// Configuration // Configuration
import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../config.json"; import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../config.json"
changeLanguage("en"); changeLanguage("en")
import Video from '@components/VideoItem.astro' import Video from '@components/VideoItem.astro'
// Fetch // Fetch
const SBO = Astro.url.href.split("search?query=").pop(); const SBO = Astro.url.href.split("search?query=").pop()
const response = await fetch(DEFAULT_DATA_PROXY + "/api/v1/search?q=" + SBO) const response = await fetch(DEFAULT_DATA_PROXY + "/api/v1/search?q=" + SBO)
.catch((error) => { .catch((error) => {
console.log(error) console.log(error)
}); })
const data = await response.json(); const data = await response.json()
--- ---
<Base Title='MinPluto Search'> <Base Title='MinPluto Search'>