Skip to content
Snippets Groups Projects
Commit be1bba11 authored by jvanboxtel@wisc.edu's avatar jvanboxtel@wisc.edu
Browse files

Remove mock data for auditmetadata, studentplans endpoints

parent 8dad0b01
No related branches found
No related tags found
No related merge requests found
...@@ -55,24 +55,16 @@ export class DarsApiService { ...@@ -55,24 +55,16 @@ export class DarsApiService {
* Get students degree programs. * Get students degree programs.
*/ */
public getStudentDegreePrograms(): Observable<StudentDegreeProgram[]> { public getStudentDegreePrograms(): Observable<StudentDegreeProgram[]> {
if (environment.production) { const url = `${environment.apiDarsUrl}/studentplans`;
const url = `${environment.apiDarsUrl}/studentplans`; return this.http.get<StudentDegreeProgram[]>(url, HTTP_OPTIONS);
return this.http.get<StudentDegreeProgram[]>(url, HTTP_OPTIONS);
} else {
return of(studentplans).pipe(delay(1000));
}
} }
/** /**
* Get audit metadata for all audits a user has. * Get audit metadata for all audits a user has.
*/ */
public getAudits(): Observable<AuditMetadata[]> { public getAudits(): Observable<AuditMetadata[]> {
if (environment.production) { const url = `${environment.apiDarsUrl}/auditmetadata`;
const url = `${environment.apiDarsUrl}/auditmetadata`; return this.http.get<AuditMetadata[]>(url, HTTP_OPTIONS);
return this.http.get<AuditMetadata[]>(url, HTTP_OPTIONS);
} else {
return of(auditMetadata).pipe(delay(1000));
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment