mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init of landing page editor
This commit is contained in:
parent
44fb6b26b8
commit
f6f915c956
4 changed files with 1343 additions and 1 deletions
|
|
@ -101,6 +101,19 @@ export async function updateUserRole(
|
|||
return res
|
||||
}
|
||||
|
||||
export async function updateOrgLanding(
|
||||
org_id: any,
|
||||
landing_object: any,
|
||||
access_token: string
|
||||
) {
|
||||
const result = await fetch(
|
||||
`${getAPIUrl()}orgs/${org_id}/landing`,
|
||||
RequestBodyWithAuthHeader('PUT', landing_object, null, access_token)
|
||||
)
|
||||
const res = await getResponseMetadata(result)
|
||||
return res
|
||||
}
|
||||
|
||||
export async function removeUserFromOrg(
|
||||
org_id: any,
|
||||
user_id: any,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue