feat: Include org filter when requesting LTI providers (#1114)

* feat: Include org filter when requesting LTI providers

* chore: Created silent version for CI testing to avoid log flooding
This commit is contained in:
Marcos Rigoli
2024-06-20 11:17:08 -03:00
committed by GitHub
parent 088a01d716
commit 3936737b48
5 changed files with 27 additions and 7 deletions

View File

@@ -15,9 +15,9 @@ class ExamsApiService {
return `${ExamsApiService.getExamsBaseUrl()}/api/v1/configs/course_id/${courseId}`;
}
static getAvailableProviders() {
static getAvailableProviders(org) {
const apiClient = getAuthenticatedHttpClient();
const providersUrl = `${ExamsApiService.getExamsBaseUrl()}/api/v1/providers`;
const providersUrl = `${ExamsApiService.getExamsBaseUrl()}/api/v1/providers${org ? `?org=${org}` : ''}`;
return apiClient.get(providersUrl);
}