From 1e349d9652447a377efaf3a7d4f2ce91a392bef4 Mon Sep 17 00:00:00 2001 From: "jvanboxtel@wisc.edu" <jvanboxtel@wisc.edu> Date: Tue, 23 Jul 2019 09:54:47 -0500 Subject: [PATCH] fix url for degree programs --- src/app/dars/services/api.service.ts | 2 +- src/environments/environment.prod.ts | 1 + src/environments/environment.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/dars/services/api.service.ts b/src/app/dars/services/api.service.ts index 7ecfadf..6ecc514 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 a6b4be3..8dd1016 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 1735cfd..c7855f8 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, }; -- GitLab