huge update (pls dont break)

This commit is contained in:
2025-12-06 04:07:19 +01:00
parent b76a113c4d
commit e54214a92b
10 changed files with 401 additions and 277 deletions
+4 -1
View File
@@ -18,7 +18,10 @@ const ResourceComponent = ({ label, link }: ResourceProps) => {
if (link) {
try {
setIsLoading(true);
const response = await fetch(`/api/validate?link=${encodeURI(link)}`);
const validateUrl = link.replace("/proxy/", "/validate/");
const response = await fetch(validateUrl);
const data = (await response.json()) as { status: number };
setStatus(data.status);
} catch {