component import to +page.svelte i fetch like this:const checklink = async (id: number) => {
try {
const testLink = await fetch(/api/checkLink/${id})
return await testLink.json()
} catch (error) {
throw error
}
}export const GET = async ({ params }) => {
const checkLink = async (id: string) => {
try {
const testLink = await fetch(https://doaminlink.../${id}`)https://domainlink/${id}https://linkb/${id}