mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: Init explore metadata features & redesign org settings panel
This commit is contained in:
parent
87787724c4
commit
bfd27ef6e3
12 changed files with 1419 additions and 217 deletions
|
|
@ -54,3 +54,15 @@ export async function uploadOrganizationThumbnail(
|
|||
const res = await errorHandling(result)
|
||||
return res
|
||||
}
|
||||
|
||||
export const uploadOrganizationPreview = async (orgId: string, file: File, access_token: string) => {
|
||||
const formData = new FormData();
|
||||
formData.append('preview_file', file);
|
||||
|
||||
const result: any = await fetch(
|
||||
`${getAPIUrl()}orgs/` + orgId + '/preview',
|
||||
RequestBodyFormWithAuthHeader('PUT', formData, null, access_token)
|
||||
)
|
||||
const res = await errorHandling(result)
|
||||
return res
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue