diff --git a/web-src/src/api/user.api.ts b/web-src/src/api/user.api.ts index d8e6912..a52b7d8 100644 --- a/web-src/src/api/user.api.ts +++ b/web-src/src/api/user.api.ts @@ -1,7 +1,7 @@ import client from "./client"; import type { BaseResponse } from "./base.models"; import type { - captchaConfig, + CaptchaConfig, LoginRequest, LoginResponse, RegisterRequest, @@ -41,6 +41,6 @@ export function getUserOrganizations(userId: number): Promise(`/user/${userId}/organizations`); } -export function getCaptchaConfig(): Promise> { - return client.get("/user/captcha/config"); +export function getCaptchaConfig(): Promise> { + return client.get("/user/captcha"); } \ No newline at end of file diff --git a/web-src/src/api/user.models.ts b/web-src/src/api/user.models.ts index ad9a92e..be75ada 100644 --- a/web-src/src/api/user.models.ts +++ b/web-src/src/api/user.models.ts @@ -61,7 +61,7 @@ export interface UserOrganizationsResponse extends BaseResponse { organizations: Org[]; } -export interface captchaConfig extends BaseResponse { +export interface CaptchaConfig extends BaseResponse { provider: "disable" | "turnstile" | "recaptcha" | "hcaptcha" | "dev-captcha"; siteKey: string; url?: string;