mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat(wip): implement certificate generation and download functionality in CourseEndView component
This commit is contained in:
parent
e39c9c37ba
commit
a913c0a366
6 changed files with 994 additions and 10 deletions
|
|
@ -59,4 +59,16 @@ export async function deleteCertification(
|
|||
)
|
||||
const res = await errorHandling(result)
|
||||
return res
|
||||
}
|
||||
|
||||
export async function getUserCertificates(
|
||||
course_uuid: string,
|
||||
access_token: string
|
||||
) {
|
||||
const result = await fetch(
|
||||
`${getAPIUrl()}certifications/user/course/${course_uuid}`,
|
||||
RequestBodyWithAuthHeader('GET', null, null, access_token)
|
||||
)
|
||||
const res = await getResponseMetadata(result)
|
||||
return res
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue