[#NUMERO_TICKET] TITRE TICKET #2

Merged
malio merged 302 commits from develop into main 2026-03-18 13:16:19 +00:00
Showing only changes of commit 84c85b3322 - Show all commits

View File

@@ -13,6 +13,15 @@ export function useTaskService() {
async function getByProject(projectId: number): Promise<Task[]> {
const data = await api.get<HydraCollection<Task>>('/tasks', {
project: `/api/projects/${projectId}`,
archived: false,
})
return extractHydraMembers(data)
}
async function getByProjectArchived(projectId: number): Promise<Task[]> {
const data = await api.get<HydraCollection<Task>>('/tasks', {
project: `/api/projects/${projectId}`,
archived: true,
})
return extractHydraMembers(data)
}
@@ -35,5 +44,5 @@ export function useTaskService() {
})
}
return { getAll, getByProject, create, update, remove }
return { getAll, getByProject, getByProjectArchived, create, update, remove }
}