Ok, let's seee

This commit is contained in:
MotorTruck1221 2024-11-06 20:42:19 -07:00
parent 366eca019d
commit c1b9432a2b
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -8,13 +8,14 @@ const t = useTranslations(lang);
const { page } = Astro.params;
let response: any = {};
let response: any = null;
try {
const url = new URL("/api/catalog-assets", Astro.url);
console.log("URL: " + url);
response = await fetch(url);
response = await fetch(new URL("/api/catalog-assets/", Astro.url));
}
catch (err: any) {
console.log('Error occured: ' + err);
response = {};
}
catch (err: any) { console.log('Error occured: ' + err) }
//console.log(new URL("/api/catalog-assets/", Astro.url));
const assetsJson = await response.json();