import { apiClient } from '../apiClient'

export default {
  getAll: () => apiClient('/api/roadmap'),
  create: (data) => apiClient('/api/roadmap', { method: 'POST', data }),
  update: (itemId, data) => apiClient(`/api/roadmap/${itemId}`, { method: 'PUT', data }),
  remove: (itemId) => apiClient(`/api/roadmap/${itemId}`, { method: 'DELETE' }),
  
  getFlow: () => apiClient('/api/roadmap/flow'),
  createFlow: (data) => apiClient('/api/roadmap/flow', { method: 'POST', data }),
  updateFlow: (itemId, data) => apiClient(`/api/roadmap/flow/${itemId}`, { method: 'PUT', data }),
  removeFlow: (itemId) => apiClient(`/api/roadmap/flow/${itemId}`, { method: 'DELETE' })
}
