mirror of
https://github.com/immich-app/immich.git
synced 2025-12-12 09:13:09 +03:00
19 lines
442 B
TypeScript
19 lines
442 B
TypeScript
|
|
import { authenticate } from '$lib/utils/auth';
|
||
|
|
import { getFormatter } from '$lib/utils/i18n';
|
||
|
|
import { getQueues } from '@immich/sdk';
|
||
|
|
import type { PageLoad } from './$types';
|
||
|
|
|
||
|
|
export const load = (async ({ url }) => {
|
||
|
|
await authenticate(url, { admin: true });
|
||
|
|
|
||
|
|
const queues = await getQueues();
|
||
|
|
const $t = await getFormatter();
|
||
|
|
|
||
|
|
return {
|
||
|
|
queues,
|
||
|
|
meta: {
|
||
|
|
title: $t('admin.queues'),
|
||
|
|
},
|
||
|
|
};
|
||
|
|
}) satisfies PageLoad;
|