mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-10 11:55:53 +00:00
7 lines
255 B
TypeScript
7 lines
255 B
TypeScript
import type { LayoutServerLoad } from './$types';
|
|
|
|
export const load = (async ({ locals: { api, user } }) => {
|
|
const { data: serverVersion } = await api.serverInfoApi.getServerVersion();
|
|
|
|
return { serverVersion, user };
|
|
}) satisfies LayoutServerLoad;
|