feat: Implement course instructor management UI with search, add, set primary, and remove instructor capabilities.

This commit is contained in:
Missez 2026-02-05 16:39:58 +07:00
parent 7ad15778e6
commit 5b1af9d43b
5 changed files with 27 additions and 6 deletions

View file

@ -286,9 +286,9 @@ export const instructorService = {
);
},
async searchInstructors(query: string): Promise<SearchInstructorResult[]> {
async searchInstructors(query: string, courseId: number): Promise<SearchInstructorResult[]> {
const response = await authRequest<SearchInstructorsResponse>(
`/api/instructors/courses/search-instructors?query=${encodeURIComponent(query)}`
`/api/instructors/courses/${courseId}/search-instructors?query=${encodeURIComponent(query)}`
);
return response.data;
},