aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/settings/nostr/+page.server.ts
blob: b4bb124b2283aaafc3bec7f65fd5e5985611a732 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { get } from "$lib/utils";
import updateUser from "$lib/settings";

export const load = async () => {
	const { challenge } = await get("/challenge");
	return { challenge };
};

export const actions = {
	default: updateUser,
};