mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add activity page
This commit is contained in:
parent
032f8334ec
commit
85ac324927
6 changed files with 180 additions and 6 deletions
|
|
@ -29,3 +29,12 @@ export async function maskLectureAsComplete(org_id: string, course_id: string, l
|
|||
.catch((error) => console.log("error", error));
|
||||
return result;
|
||||
}
|
||||
|
||||
// get all activities
|
||||
export async function getActivities(org_id: string) {
|
||||
const result: any = await fetch(`${getAPIUrl()}activity/${org_id}/activities`, RequestBody("GET", null))
|
||||
.then((result) => result.json())
|
||||
.catch((error) => console.log("error", error));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,3 +11,4 @@ export const RequestBody = (method: string, data: any) => {
|
|||
}
|
||||
return options;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue