From 5a98b9e20aef9ec516fd681cd2526085ead34145 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Wed, 13 Sep 2023 14:01:14 -0700 Subject: [PATCH] Start path to config with /api/config (before: 'api/config') (#1417) --- src/app/teacher/authoring.config.resolver.ts | 2 +- src/app/teacher/teacher-tools.resolver.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/teacher/authoring.config.resolver.ts b/src/app/teacher/authoring.config.resolver.ts index 543535ad471..34ee51d3739 100644 --- a/src/app/teacher/authoring.config.resolver.ts +++ b/src/app/teacher/authoring.config.resolver.ts @@ -7,4 +7,4 @@ export const AuthoringConfigResolver: ResolveFn = ( route: ActivatedRouteSnapshot, state: RouterStateSnapshot, configService: ConfigService = inject(ConfigService) -): Observable => configService.retrieveConfig('api/author/config'); +): Observable => configService.retrieveConfig('/api/author/config'); diff --git a/src/app/teacher/teacher-tools.resolver.ts b/src/app/teacher/teacher-tools.resolver.ts index 0d6766a8fc7..7c3deeebf62 100644 --- a/src/app/teacher/teacher-tools.resolver.ts +++ b/src/app/teacher/teacher-tools.resolver.ts @@ -23,7 +23,7 @@ export const TeacherToolsResolver: ResolveFn = ( websocketService: TeacherWebSocketService = inject(TeacherWebSocketService) ): Observable => configService - .retrieveConfig(`api/config/classroomMonitor/${route.params['unitId']}`) + .retrieveConfig(`/api/config/classroomMonitor/${route.params['unitId']}`) .pipe(switchMap(() => projectService.retrieveProject())) .pipe(switchMap(() => classroomStatusService.retrieveStudentStatuses())) .pipe(switchMap(() => achievementService.retrieveStudentAchievements()))