Skip to content

Commit ed7c389

Browse files
authored
Merge pull request #281 from dkttarento/patch-17
Whitelist and proxies_v8 for Grant access API
2 parents 70eef1c + 59caa88 commit ed7c389

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/proxies_v8/proxies_v8.ts

+5
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,11 @@ proxiesV8.use('/ehrms/*',
600600
proxyCreatorSunbird(express.Router(), `${CONSTANTS.KONG_API_BASE}`)
601601
)
602602

603+
proxiesV8.use('/operationalreports/*',
604+
// tslint:disable-next-line: max-line-length
605+
proxyCreatorSunbird(express.Router(), `${CONSTANTS.KONG_API_BASE}`)
606+
)
607+
603608
function removePrefix(prefix: string, s: string) {
604609
return s.substr(prefix.length)
605610
}

src/utils/whitelistApis.ts

+8
Original file line numberDiff line numberDiff line change
@@ -2745,6 +2745,13 @@ export const API_LIST = {
27452745
ROLE.CONTENT_CREATOR,
27462746
],
27472747
},
2748+
'/proxies/v8/operationalreports/admin/grantaccess': {
2749+
checksNeeded: [CHECK.ROLE],
2750+
// tslint:disable-next-line: object-literal-sort-keys
2751+
ROLE_CHECK: [
2752+
ROLE.MDO_LEADER,
2753+
],
2754+
},
27482755
},
27492756
URL_PATTERN:
27502757
[
@@ -3095,5 +3102,6 @@ export const API_LIST = {
30953102
'/proxies/v8/user/v1/content/recommend',
30963103
'/proxies/v8/ehrms/details',
30973104
'/proxies/v8/program/v2/admin/bulkEnroll',
3105+
'/proxies/v8/operationalreports/admin/grantaccess',
30983106
],
30993107
}

0 commit comments

Comments
 (0)