7 lines
206 B
JavaScript
7 lines
206 B
JavaScript
![]() |
/** @type {import('./$types').PageLoad} */
|
||
|
export async function load({ fetch, params }) {
|
||
|
const res = await fetch(`/api/session`);
|
||
|
const username = await res.text();
|
||
|
|
||
|
return { username };
|
||
|
}
|