import { api } from './client'

export async function fetchSystemConfig() {
  const { data } = await api.get('/system/config')
  return data
}

export async function updateSystemConfig(payload) {
  const { data } = await api.post('/system/config', payload)
  return data
}

export async function executeScheduleNow() {
  const { data } = await api.post('/schedule/execute', {})
  return data
}

