// System API for managing system settings import { apiFetchJSON } from '@/utils/apiClient'; export interface SystemSettings { // Note: PVE polling is hardcoded to 10s server-side updateChannel?: string; autoUpdateEnabled: boolean; autoUpdateCheckInterval?: number; autoUpdateTime?: string; // apiToken removed - now handled via security API } export class SystemAPI { // System Settings static async getSystemSettings(): Promise { return apiFetchJSON('/api/system/settings'); } static async updateSystemSettings(settings: Partial): Promise { await apiFetchJSON('/api/system/settings/update', { method: 'POST', body: JSON.stringify(settings), }); } }