Skip to content

Commit

Permalink
Start path to config with /api/config (before: 'api/config') (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokiterashima authored Sep 13, 2023
1 parent d6d4518 commit 5a98b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/teacher/authoring.config.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export const AuthoringConfigResolver: ResolveFn<any> = (
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot,
configService: ConfigService = inject(ConfigService)
): Observable<any> => configService.retrieveConfig('api/author/config');
): Observable<any> => configService.retrieveConfig('/api/author/config');
2 changes: 1 addition & 1 deletion src/app/teacher/teacher-tools.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const TeacherToolsResolver: ResolveFn<any> = (
websocketService: TeacherWebSocketService = inject(TeacherWebSocketService)
): Observable<any> =>
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()))
Expand Down

0 comments on commit 5a98b9e

Please sign in to comment.