mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init sitemaps generation
This commit is contained in:
parent
09c0444284
commit
41a11c5f83
3 changed files with 88 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue