Skip to content

Commit

Permalink
Merge pull request #2 from vishnuvinay89/all-saas-0.1-dev
Browse files Browse the repository at this point in the history
moved read/user and cohort/search to public api
  • Loading branch information
sudeeppr1998 authored Dec 20, 2024
2 parents e56c857 + 15b2ff7 commit 4c24aa6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ export const apiList = {
}),
'/user/v1/read/:userId': createRouteObject({
get: {
PRIVILEGE_CHECK: privilegeGroup.users.read,
ROLE_CHECK:
rolesGroup.admin_team_leader_teacher_student_state_admin_scta_ccta,
// PRIVILEGE_CHECK: privilegeGroup.users.read,
// ROLE_CHECK:
// rolesGroup.common,
},
}),
'/user/v1/update/:userId': createRouteObject({
Expand Down Expand Up @@ -253,9 +253,9 @@ export const apiList = {
}),
'/user/v1/cohort/search': createRouteObject({
post: {
PRIVILEGE_CHECK: privilegeGroup.cohort.read,
// PRIVILEGE_CHECK: privilegeGroup.cohort.read,
// ROLE_CHECK: rolesGroup.team_leader_teacher,
ROLE_CHECK: rolesGroup.common,
// ROLE_CHECK: rolesGroup.common,
},
}),
'/user/v1/cohort/update/:cohortId': createRouteObject({
Expand Down Expand Up @@ -1558,10 +1558,12 @@ export const urlPatterns = Object.keys(apiList);
//add public api
export const publicAPI = [ // no check of auth
'/user/v1/auth',
'/user/v1/cohort/search',
// '/user/v1/create',
'/user/v1/fields/options/read',
// '/user/v1/tenant/read',
'/user/v1/auth/login',
'/user/v1/read/:userId',
'/user/v1/auth',
'/api/question/v2/list',
'/action/question/v2/list',
Expand Down

0 comments on commit 4c24aa6

Please sign in to comment.