Skip to content

Commit d6fc91a

Browse files
committed
refactor(rest): move the security registrars' bodies into security-routes.ts (#23050 slice 6)
The bodies of RestServer#registerSecurityExplainEndpoints (GET/POST {basePath}/security/explain, GET {basePath}/security/my-delegable-scope) and RestServer#registerSecurityEndpoints (GET {basePath}/security/ suggested-bindings and its /:id/confirm and /:id/dismiss) move, unedited and re-indented one level, to ONE new module. The class keeps both private methods and their docblocks as host literals plus .call; routeManager goes by value, kernelManager and securityServiceProvider as getters. The imports only these bodies read move with them, each leaving a pointer comment. The registrar list gains security-routes.ts (6 -> 7). Move-only commit: the readers are re-pointed in the next commit. Claude-Session: https://claude.ai/code/session_01Q9PZ5Pzqcus4woVvTZwWNU Co-authored-by: Claude <noreply@anthropic.com>
1 parent a515abd commit d6fc91a

3 files changed

Lines changed: 599 additions & 449 deletions

File tree

‎packages/rest/src/rest-server-registrar-files.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export const REST_SERVER_REGISTRAR_FILES = [
3939
'sharing-routes.ts',
4040
// [#23050 slice 5] `registerAnalyticsEndpoints`' body.
4141
'analytics-routes.ts',
42+
// [#23050 slice 6] `registerSecurityExplainEndpoints`' and `registerSecurityEndpoints`' bodies.
43+
'security-routes.ts',
4244
] as const;
4345

4446
/** One file on {@link REST_SERVER_REGISTRAR_FILES}. */

0 commit comments

Comments
 (0)