lora-studio / src /routes /+layout.server.ts
enzostvs's picture
enzostvs HF staff
add user validation
b1a4d81
raw
history blame
223 Bytes
export async function load({ fetch }) {
const response = await fetch("/api/@me", {
method: "GET",
headers: {
"Content-Type": "application/json"
}
})
const user = await response.json()
return user
}