Skip to content

Commit

Permalink
Merge pull request #48 from arati-tekdi/main
Browse files Browse the repository at this point in the history
Added new API
  • Loading branch information
rushi-tekdi authored Nov 13, 2024
2 parents 58583d3 + 8d9f0ec commit f003b6f
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 f003b6f

Please sign in to comment.