mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
8 lines
218 B
TypeScript
8 lines
218 B
TypeScript
import { trpc } from "$trpc/client";
|
|
import type { PageLoad } from "./$types";
|
|
|
|
export const load: PageLoad = async ({ fetch }) => {
|
|
const { nickname } = await trpc(fetch).user.get.query();
|
|
return { nickname };
|
|
};
|