Files
EvoBGP/apps/web/src/lib/queries/api-keys.ts
T
Denozordec a37c931ee7
CI / changes (push) Successful in 10s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 27s
CI / web (push) Successful in 38s
CI / go (push) Successful in 2m36s
CI / bird2 (push) Successful in 15s
CI / release (push) Failing after 3m7s
feat(monorepo): restructure web components and update configurations
Refactored the project structure to support a monorepo setup, moving the web application to `apps/web/` and updating related configurations. Adjusted pre-commit hooks to use `pnpm` for linting and formatting. Updated CI workflows to reflect the new directory structure and dependencies. Removed legacy files and configurations from the previous `web/` directory, streamlining the project for better maintainability and clarity.
2026-06-30 23:54:28 +07:00

15 lines
416 B
TypeScript

import { apiJSON } from '$lib/api/client.js';
import type { ApiKeysResponse } from '$lib/api/types.js';
export const apiKeysKeys = {
all: ['api-keys'] as const,
list: (limit?: number) => [...apiKeysKeys.all, 'list', limit] as const
};
export function apiKeysQueryOptions(limit = 500) {
return {
queryKey: apiKeysKeys.list(limit),
queryFn: () => apiJSON<ApiKeysResponse>(`/v1/api-keys?limit=${limit}`)
};
}