import request from '../utils/request'

export function getWorkflowsWithRuns() {
  return request.get('/run-history/workflows')
}

export function getRunDetail(runId) {
  return request.get(`/run-history/runs/${runId}`)
}

export function deleteRun(runId) {
  return request.post(`/run-history/runs/${runId}/delete`)
}
