Yeahh I think I know what's going on...
This commit is contained in:
parent
2519ed3d8c
commit
fcf0bbb1d9
1 changed files with 4 additions and 2 deletions
|
|
@ -8,9 +8,11 @@ const t = useTranslations(lang);
|
|||
|
||||
const { page } = Astro.params;
|
||||
|
||||
let response: any = [];
|
||||
let response: any = {};
|
||||
try {
|
||||
response = await fetch(new URL("/api/catalog-assets/", Astro.url));
|
||||
const url = new URL("/api/catalog-assets", Astro.url);
|
||||
response = await fetch(url);
|
||||
console.log("URL: " + url);
|
||||
}
|
||||
catch (err: any) { console.log('Error occured' + err) }
|
||||
//console.log(new URL("/api/catalog-assets/", Astro.url));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue