15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
import { authenticate } from '$lib/utils/auth';
|
|
import { getFormatter } from '$lib/utils/i18n';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load = (async ({ url }) => {
|
|
await authenticate(url, { admin: true });
|
|
const $t = await getFormatter();
|
|
|
|
return {
|
|
meta: {
|
|
title: $t('admin.system_settings'),
|
|
},
|
|
};
|
|
}) satisfies PageLoad;
|