Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/modules/card/search/search.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export const SEARCH_ROUTES: ProxyRoute[] = [
method: HTTPMethod.GET,
path: "/resources",
},
{
method: HTTPMethod.GET,
path: "/organizations",
},
{
method: HTTPMethod.GET,
auth: true,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/clark/chatbot-module/chatbot.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export class ChatBotRouteHandler {
envConfig.getUri(CLARK_SERVICE_URI),
);
}
}
}
2 changes: 1 addition & 1 deletion src/modules/clark/chatbot-module/chatbot.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export const CHATBOT_ROUTES: ProxyRoute[] = [
{
method: HTTPMethod.POST,
path: "/chat",
},
},
];
2 changes: 2 additions & 0 deletions src/modules/clark/clark.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { AccessGroupRouteHandler } from "./access-group-module/access-group.rout
import { AuthRouteHandler } from "./auth-module/auth.router";
import { FileRouteHandler } from "./file-module/file.router";
import { ChatBotRouteHandler } from "./chatbot-module/chatbot.router";
import { OrganizationRouteHandler } from "./organization/organization.router";
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Within ClarkRouteHandler, every other sub-router import follows a *-module folder convention (e.g., ./user-module/..., ./utility-module/...), but this PR introduces ./organization/.... For consistency and easier navigation, consider renaming the folder to organization-module (and updating the import), or aligning the naming across Clark modules if organization is intentionally different.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Minor change, but pls


export class ClarkRouteHandler {
public static build(): Router {
Expand All @@ -37,6 +38,7 @@ export class ClarkRouteHandler {
router.use(UsersRouteHandler.build());
router.use(UtilityRouteHandler.build());
router.use(ChatBotRouteHandler.build());
router.use(OrganizationRouteHandler.build());

return router;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const REVISIONS_ROUTES: ProxyRoute[] = [
{
method: HTTPMethod.POST,
path: "/learning-objects/:cuid/versions/story",
auth: true
auth: true,
},
{
method: HTTPMethod.DELETE,
Expand Down
4 changes: 2 additions & 2 deletions src/modules/clark/learning-object-module/search.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export const SEARCH_ROUTES: ProxyRoute[] = [
},
{
method: HTTPMethod.GET,
path: "/learning-objects/name/check/:name"
}
path: "/learning-objects/name/check/:name",
},
];
4 changes: 2 additions & 2 deletions src/modules/clark/metric-module/metrics.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export const METRICS_ROUTES: ProxyRoute[] = [
},
{
method: HTTPMethod.GET,
path: "/tags/:tagId/metrics"
}
path: "/tags/:tagId/metrics",
},
];
14 changes: 14 additions & 0 deletions src/modules/clark/organization/organization.router.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Router } from "express";
import { buildProxyRouter } from "../../../shared/functions/build-proxy-router";
import { CLARK_SERVICE_URI } from "../../../config/global.env";
import { envConfig } from "../../../config/env/env.driver";
import { ORGANIZATION_ROUTES } from "./organization.routes";

export class OrganizationRouteHandler {
public static build(): Router {
return buildProxyRouter(
ORGANIZATION_ROUTES,
envConfig.getUri(CLARK_SERVICE_URI),
);
}
}
12 changes: 12 additions & 0 deletions src/modules/clark/organization/organization.routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { HTTPMethod } from "../../../shared/types/http-method.type";
import { ProxyRoute } from "../../../shared/types/proxy-route.type";

export const ORGANIZATION_ROUTES: ProxyRoute[] = [
/**
* Search route
*/
{
method: HTTPMethod.GET,
path: "/organizations",
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const STANDARD_GUIDELINES_ROUTES: ProxyRoute[] = [
},
{
method: HTTPMethod.GET,
path: "/tags/types"
path: "/tags/types",
},

/**
Expand Down
2 changes: 1 addition & 1 deletion src/modules/clark/utility-module/utility.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export const UTILITY_ROUTES: ProxyRoute[] = [
{
method: HTTPMethod.GET,
path: "/clientversion",
}
},
];
Loading