kin: KIN-UI-015-frontend_dev
This commit is contained in:
parent
abd58e00f0
commit
62a483b62a
3 changed files with 12 additions and 71 deletions
|
|
@ -410,6 +410,11 @@ export const api = {
|
|||
deleteAttachment: (taskId: string, id: number) =>
|
||||
del<void>(`/tasks/${taskId}/attachments/${id}`),
|
||||
attachmentUrl: (id: number) => `${BASE}/attachments/${id}/file`,
|
||||
listTasks: (status?: string, limit = 20, sort = 'updated_at') => {
|
||||
const q = new URLSearchParams({ limit: String(limit), sort })
|
||||
if (status) q.set('status', status)
|
||||
return get<Task[]>(`/tasks?${q.toString()}`)
|
||||
},
|
||||
getPipelineLogs: (pipelineId: string, sinceId: number) =>
|
||||
get<PipelineLog[]>(`/pipelines/${pipelineId}/logs?since_id=${sinceId}`),
|
||||
projectLinks: (projectId: string) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue