feat: init sitemaps generation

This commit is contained in:
swve 2024-09-26 23:29:05 +02:00
parent 09c0444284
commit 41a11c5f83
3 changed files with 88 additions and 3 deletions

View file

@ -12,12 +12,12 @@ import {
*/
export async function getOrgCourses(
org_id: number,
org_slug: string,
next: any,
access_token: any
access_token?: any
) {
const result: any = await fetch(
`${getAPIUrl()}courses/org_slug/${org_id}/page/1/limit/10`,
`${getAPIUrl()}courses/org_slug/${org_slug}/page/1/limit/10`,
RequestBodyWithAuthHeader('GET', null, next, access_token)
)
const res = await errorHandling(result)