Skip to content

Commit

Permalink
Added new API
Browse files Browse the repository at this point in the history
  • Loading branch information
arati-tekdi committed Nov 13, 2024
1 parent 98d042d commit 8d9f0ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,10 @@ export const apiList = {
},
'/content/v3/hierarchy/:identifier',
),

'/api/course/v1/hierarchy/:identifier': createRouteObject(
common_public_get,
'/content/v3/hierarchy/:identifier',
),
'/action/license/v3/create': createRouteObject(
{
post: {
Expand Down Expand Up @@ -1492,6 +1495,8 @@ export const publicAPI = [
'/user/v1/forgot-password',
'/questionset/v5/private/read/:identifier',
'/action/composite/v3/search',
'/api/content/v1/read/:identifier',
'/api/course/v1/hierarchy/:identifier',
];

// api which required academic year
Expand Down
1 change: 1 addition & 0 deletions src/common/middleware/middleware.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ export class MiddlewareServices {
'/api/content': 'CONTENT_SERVICE',
'/action/license': 'CONTENT_SERVICE',
'/action/collection': 'CONTENT_SERVICE',
'/api/course/': 'CONTENT_SERVICE',
};

// Iterate over the mapping to find the correct service based on the URL prefix
Expand Down

0 comments on commit 8d9f0ec

Please sign in to comment.