feat: initiate new home page

This commit is contained in:
swve 2023-05-07 16:05:18 +02:00
parent 7d6ba9ff2a
commit e86fca650e
9 changed files with 99 additions and 19 deletions

View file

@ -7,8 +7,9 @@ import { RequestBody, RequestBodyForm, errorHandling } from "@services/utils/ts/
*/
export async function getOrgCourses(org_id: number) {
const result: any = await fetch(`${getAPIUrl()}courses/${org_id}/page/1/limit/10`, RequestBody("GET", null));
const result: any = await fetch(`${getAPIUrl()}courses/org_slug/${org_id}/page/1/limit/10`, RequestBody("GET", null));
const res = await errorHandling(result);
return res;
}