feat: enable assignments page

This commit is contained in:
swve 2024-08-07 23:47:18 +02:00
parent 40ef2d0cec
commit 364c24e15d
6 changed files with 232 additions and 3 deletions

View file

@ -278,3 +278,15 @@ export async function markActivityAsDoneForUser(
const res = await getResponseMetadata(result)
return res
}
export async function getAssignmentsFromACourse(
courseUUID: string,
access_token: string
) {
const result: any = await fetch(
`${getAPIUrl()}assignments/course/${courseUUID}`,
RequestBodyWithAuthHeader('GET', null, null, access_token)
)
const res = await getResponseMetadata(result)
return res
}