mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: user certificate verification backend and UI
This commit is contained in:
parent
f609c50760
commit
f01f7efb06
5 changed files with 389 additions and 1 deletions
|
|
@ -71,4 +71,20 @@ export async function getUserCertificates(
|
|||
)
|
||||
const res = await getResponseMetadata(result)
|
||||
return res
|
||||
}
|
||||
|
||||
export async function getCertificateByUuid(
|
||||
user_certification_uuid: string
|
||||
) {
|
||||
const result = await fetch(
|
||||
`${getAPIUrl()}certifications/certificate/${user_certification_uuid}`,
|
||||
{
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
}
|
||||
)
|
||||
const res = await getResponseMetadata(result)
|
||||
return res
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue