From 9acabb68597a6b77ba2bbec1ea7d82aed83dc79f Mon Sep 17 00:00:00 2001 From: David Date: Tue, 12 May 2026 01:23:47 +0200 Subject: [PATCH] fix api key --- apps/frontend/src/lib/api/api-keys.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/frontend/src/lib/api/api-keys.ts b/apps/frontend/src/lib/api/api-keys.ts index 0a6dd6d..cf93fe0 100644 --- a/apps/frontend/src/lib/api/api-keys.ts +++ b/apps/frontend/src/lib/api/api-keys.ts @@ -28,28 +28,28 @@ export interface CreateApiKeyRequest { /** * List all API keys for the current organization - * GET /api-keys + * GET /api/v1/api-keys * Requires: Gold or Platinum plan */ export async function listApiKeys(): Promise { - return get('/api-keys'); + return get('/api/v1/api-keys'); } /** * Create a new API key - * POST /api-keys + * POST /api/v1/api-keys * Requires: Gold or Platinum plan * Returns the full key — shown only once */ export async function createApiKey(data: CreateApiKeyRequest): Promise { - return post('/api-keys', data); + return post('/api/v1/api-keys', data); } /** * Revoke an API key (immediate and irreversible) - * DELETE /api-keys/:id + * DELETE /api/v1/api-keys/:id * Requires: Gold or Platinum plan */ export async function revokeApiKey(id: string): Promise { - return del(`/api-keys/${id}`); + return del(`/api/v1/api-keys/${id}`); }