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

@ -55,6 +55,15 @@ export async function getCourse(course_uuid: string, next: any, access_token:any
return res
}
export async function getCourseById(course_id: string, next: any, access_token:any) {
const result: any = await fetch(
`${getAPIUrl()}courses/id/${course_id}`,
RequestBodyWithAuthHeader('GET', null, next,access_token)
)
const res = await errorHandling(result)
return res
}
export async function updateCourseThumbnail(course_uuid: any, thumbnail: any, access_token:any) {
const formData = new FormData()
formData.append('thumbnail', thumbnail)