12 lines
297 B
TypeScript
12 lines
297 B
TypeScript
import { profile } from '$lib/auth.js'
|
|
import { getClient } from '$lib/lemmy.js'
|
|
import { get } from 'svelte/store'
|
|
|
|
export async function load({ fetch, parent }) {
|
|
const instances = await getClient(undefined, fetch).getFederatedInstances()
|
|
|
|
return {
|
|
federated_instances: instances,
|
|
}
|
|
}
|