feat: add federation management
This commit is contained in:
1 parent
0c6cab22f3
commit
e530dcd05f
17 files changed
+386
-33
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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({
|
||||
auth: get(profile)?.jwt,
|
||||
})
|
||||
|
||||
return {
|
||||
federated_instances: instances,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user