Initial commit

This commit is contained in:
ox42
2026-09-17 00:43:28 +02:00
commit 0c4e109f36
32 changed files with 9585 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
export const fetchApi = async <T = any>(url: string): Promise<T> => {
const response = await fetch(url);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
return response.json();
};