mirror of
https://github.com/immich-app/immich.git
synced 2025-12-25 12:25:46 -08:00
* feat(web): meta tags for share links * refactor: svelte head tags * chore: clean up * chore: linting
18 lines
386 B
TypeScript
18 lines
386 B
TypeScript
import { redirect } from '@sveltejs/kit';
|
|
import type { PageServerLoad } from './$types';
|
|
import { serverApi } from '@api';
|
|
|
|
export const load: PageServerLoad = async () => {
|
|
const { data } = await serverApi.userApi.getUserCount(true);
|
|
if (data.userCount === 0) {
|
|
// Admin not registered
|
|
throw redirect(302, '/auth/register');
|
|
}
|
|
|
|
return {
|
|
meta: {
|
|
title: 'Login'
|
|
}
|
|
};
|
|
};
|