use deployed api endpoints for lms admin

This commit is contained in:
2026-07-08 09:14:41 +09:00
parent 705ffeb490
commit b581ee59d3
13 changed files with 19 additions and 14 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export type InstructorCourse = {
};
};
const LMS_API_BASE_URL = (import.meta.env.VITE_API_BASE_URL ?? 'http://localhost:4400/api').replace(/\/+$/, '');
const LMS_API_BASE_URL = (import.meta.env.VITE_API_BASE_URL ?? 'https://workspace.autonomystudio.net/lms-api/api').replace(/\/+$/, '');
export async function listInstructorCourses(accessToken: string): Promise<{ courses: InstructorCourse[] }> {
const response = await fetch(`${LMS_API_BASE_URL}/instructor/courses`, {