Skip to content

Commit

Permalink
Merge pull request #71 from souravbhowmik1999/middleware_test_pratham
Browse files Browse the repository at this point in the history
whitelist delete field options api
  • Loading branch information
Shubham4026 authored Dec 11, 2024
2 parents 86cdd77 + 275cd6b commit 846ffa7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,21 @@ export const apiList = {
ROLE_CHECK: rolesGroup.admin_team_leader,
},
}),
'/user/v1/tenant/create': createRouteObject({
post: {
ROLE_CHECK: rolesGroup.admin_mme,
},
}),
'/user/v1/tenant/update/:identifier': createRouteObject({
post: {
ROLE_CHECK: rolesGroup.admin_mme,
},
}),
'/user/v1/tenant/delete/:identifier': createRouteObject({
post: {
ROLE_CHECK: rolesGroup.admin_mme,
},
}),
'/user/v1/academicyears/create': createRouteObject({
post: {},
}),
Expand All @@ -394,6 +409,9 @@ export const apiList = {
'/user/v1/fields/options/read': createRouteObject({
post: {},
}),
'/user/v1/fields/options/delete/:identifier': createRouteObject({
delete: {},
}),
'/user/v1/fields/update/:identifier': createRouteObject({
patch: {},
}),
Expand Down Expand Up @@ -1566,6 +1584,7 @@ export const publicAPI = [
'/api/course/v1/hierarchy/:identifier',
'/prathamservice/v1/cronjob',
'/prathamservice/v1/import-user',
'/user/v1/fields/options/delete/:identifier',
];

// api which required academic year
Expand Down

0 comments on commit 846ffa7

Please sign in to comment.