File size: 227 Bytes
b1a4d81
 
 
 
 
 
 
 
eb29a95
b1a4d81
1
2
3
4
5
6
7
8
9
10
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 }
}