mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-30 12:39:03 +01:00
8 lines
296 B
TypeScript
8 lines
296 B
TypeScript
import ApiKeyService from '#lib/services/api-key-service.ts';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load: PageLoad = async () => {
|
|
const apiKeys = await new ApiKeyService().list({ pagination: { page: 1, limit: 1 } });
|
|
return { empty: apiKeys.pagination.totalItems === 0 };
|
|
};
|