working on the frontend, adding torrent page, working on show directory, working on the api

This commit is contained in:
maxDorninger
2025-05-11 10:59:38 +02:00
parent 180771882d
commit ef7b020043
164 changed files with 5389 additions and 1594 deletions

View File

@@ -1,16 +0,0 @@
import {env} from "$env/dynamic/public";
import type {LayoutLoad} from "./$types";
let apiUrl = env.PUBLIC_API_URL
export const load: LayoutLoad = async ({fetch}) => {
const response = await fetch(apiUrl + "/users/me", {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
credentials: 'include',
});
return {user: await response.json()};
}