import { apiRequest } from '@/shared/api/client'
import type { SiteSettings } from '@/shared/api/types'

export function getSiteSettings() {
  return apiRequest<SiteSettings>('/admin/settings')
}

export function updateSiteSettings(body: SiteSettings) {
  return apiRequest<void>('/admin/settings', { method: 'PUT', body })
}
