working on the frontend

This commit is contained in:
maxDorninger
2025-04-27 18:04:50 +02:00
parent 4fc2461d7f
commit 180771882d
111 changed files with 6187 additions and 151 deletions

View File

@@ -0,0 +1,16 @@
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()};
}