immich/web/src/routes/+layout.server.ts
Jason Rasmussen f55b3add80
chore(web): prettier (#2821)
Co-authored-by: Thomas Way <thomas@6f.io>
2023-06-30 23:50:47 -05:00

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;