Skip to content

Commit a1a8e0f

Browse files
author
saipradeep_ravipati
committed
entry for userKarmaPoints
1 parent d46454d commit a1a8e0f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/proxies_v8/proxies_v8.ts

+4
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ proxiesV8.use('/login/entry*',
236236
// tslint:disable-next-line: max-line-length
237237
proxyCreatorSunbirdSearch(express.Router(), `${CONSTANTS.KONG_API_BASE}/v1/user/login`)
238238
)
239+
proxiesV8.use('/user/totalkarmapoints',
240+
// tslint:disable-next-line: max-line-length
241+
proxyCreatorSunbirdSearch(express.Router(), `${CONSTANTS.KONG_API_BASE}/user/totalkarmapoints`)
242+
)
239243

240244
proxiesV8.get(['/api/user/v2/read', '/api/user/v2/read/:id'], async (req, res) => {
241245
const host = req.get('host')

src/utils/whitelistApis.ts

+8
Original file line numberDiff line numberDiff line change
@@ -2660,6 +2660,13 @@ export const API_LIST = {
26602660
ROLE.PUBLIC,
26612661
],
26622662
},
2663+
'/proxies/v8/user/totalkarmapoints': {
2664+
checksNeeded: [CHECK.ROLE],
2665+
// tslint:disable-next-line: object-literal-sort-keys
2666+
ROLE_CHECK: [
2667+
ROLE.PUBLIC,
2668+
],
2669+
},
26632670
},
26642671
URL_PATTERN:
26652672
[
@@ -2999,5 +3006,6 @@ export const API_LIST = {
29993006
'/proxies/v8/karmapoints/user/course/read',
30003007
'/proxies/v8/claimkarmapoints',
30013008
'/proxies/v8/login/entry',
3009+
'/proxies/v8/user/totalkarmapoints',
30023010
],
30033011
}

0 commit comments

Comments
 (0)