diff --git a/src/app/dars/services/api.service.ts b/src/app/dars/services/api.service.ts index 7ecfadf2c34b0b31438c0e11db6d232e7e3a57af..6ecc514bf84c7eb64194c3b172364dd9ae671aeb 100644 --- a/src/app/dars/services/api.service.ts +++ b/src/app/dars/services/api.service.ts @@ -27,7 +27,7 @@ export class DarsApiService { public getStaticData(): Observable<DegreePrograms> { // Prevents errors locally if (environment.production) { - const url = `${environment.apiDarsUrl}/degreeprograms.json`; + const url = `${environment.apiDarsData}/degreeprograms.json`; return this.http.get<DegreePrograms>(url, HTTP_OPTIONS); } else { return of(degreeProgramsResponse); diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index a6b4be35f549d3cf4fa416a62253a624063a90d3..8dd1016bb7861c7784b8533f1d2f1f4dbaea5808 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -5,5 +5,6 @@ export const environment = { apiSearchUrl: '/api/search/v1', apiEnrollUrl: '/api/enroll/v1', apiDarsUrl: '/api/dars', + apiDarsData: '/api/data', snackbarDuration: 4000, }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 1735cfdf3497e6a574d7892dc17443b248211338..c7855f8645968b990c6fa0fcd9bf0d9047391a1c 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -10,6 +10,7 @@ export const environment = { apiSearchUrl: '/api/search/v1', apiEnrollUrl: '/api/enroll/v1', apiDarsUrl: '/api/dars', + apiDarsData: '/api/data', snackbarDuration: 4000, useNewDARSView: true, };