From 02303bdff9a0c1358903bef2cbac444968ea5d8e Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 19 Jan 2026 10:19:04 +0300 Subject: [PATCH] Update branding.ts --- src/api/branding.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/api/branding.ts b/src/api/branding.ts index e948691..b61f2e5 100644 --- a/src/api/branding.ts +++ b/src/api/branding.ts @@ -7,6 +7,10 @@ export interface BrandingInfo { has_custom_logo: boolean } +export interface AnimationEnabled { + enabled: boolean +} + export const brandingApi = { // Get current branding (public, no auth required) getBranding: async (): Promise => { @@ -45,4 +49,16 @@ export const brandingApi = { } return `${import.meta.env.VITE_API_URL || ''}${branding.logo_url}` }, + + // Get animation enabled (public, no auth required) + getAnimationEnabled: async (): Promise => { + const response = await apiClient.get('/cabinet/branding/animation') + return response.data + }, + + // Update animation enabled (admin only) + updateAnimationEnabled: async (enabled: boolean): Promise => { + const response = await apiClient.patch('/cabinet/branding/animation', { enabled }) + return response.data + }, }