feat: finalize basic task edition and ref files

This commit is contained in:
swve 2024-07-16 22:07:54 +02:00
parent 3c41e0ee73
commit aa55c51b48
13 changed files with 251 additions and 46 deletions

View file

@ -92,6 +92,19 @@ export async function updateAssignmentTask(
return res
}
export async function deleteAssignmentTask(
assignmentTaskUUID: string,
assignmentUUID: string,
access_token: string
) {
const result: any = await fetch(
`${getAPIUrl()}assignments/${assignmentUUID}/tasks/${assignmentTaskUUID}`,
RequestBodyWithAuthHeader('DELETE', null, null, access_token)
)
const res = await getResponseMetadata(result)
return res
}
export async function updateReferenceFile(
file: any,
assignmentTaskUUID: string,