diff --git a/src/proxies_v8/proxies_v8.ts b/src/proxies_v8/proxies_v8.ts index 1bf6e62e..ecf58a89 100644 --- a/src/proxies_v8/proxies_v8.ts +++ b/src/proxies_v8/proxies_v8.ts @@ -1100,3 +1100,7 @@ proxiesV8.use('/national/learning/week/insights', // tslint:disable-next-line: max-line-length proxyCreatorSunbirdSearch(express.Router(), `${CONSTANTS.KONG_API_BASE}/national/learning/week/insights`) ) + +proxiesV8.use('/eventprogress/*', + proxyCreatorSunbird(express.Router(), `${CONSTANTS.KONG_API_BASE}`) +) \ No newline at end of file diff --git a/src/utils/whitelistApis.ts b/src/utils/whitelistApis.ts index 541eaa4b..ddc2754a 100644 --- a/src/utils/whitelistApis.ts +++ b/src/utils/whitelistApis.ts @@ -4679,6 +4679,42 @@ export const API_LIST = { ROLE.CBP_ADMIN, ], }, + '/proxies/v8/user/events/list/:uid': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + + }, + '/proxies/v8/event/batch/enroll': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + }, + '/proxies/v8/eventprogress/v1/event/state/update': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + }, + '/proxies/v8/user/event/read/:id': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + }, + '/proxies/v8/user/event/state/read': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + }, }, URL_PATTERN: [ @@ -5282,5 +5318,10 @@ export const API_LIST = { '/proxies/v8/operationalreports/v2/download/:rootOrgId', '/proxies/v8/storage/v1/uploadCiosLogsFile', '/proxies/v8/storage/v1/downloadCiosLogs/:fileName', + '/proxies/v8/user/events/list/:uid', + '/proxies/v8/event/batch/enroll', + '/proxies/v8/eventprogress/v1/event/state/update', + '/proxies/v8/user/event/read/:id', + '/proxies/v8/user/event/state/read', ], }