-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Inline decoupled routes into main router file #627
Conversation
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement, Other
Description
Consolidated all router files into a single main router file.
Removed individual router files for
auth
,integrations
,jobs
,machines
, andruns
.Added new constants for machine services and integrations.
Introduced inline route definitions for better maintainability.
Changes walkthrough 📝
router.ts
Removed `authRouter` and moved logic to main router
control-plane/src/modules/auth/router.ts
authRouter
and its route definitions.constants.ts
Added `NEW_CONNECTION_ID` constant for integrations
control-plane/src/modules/integrations/constants.ts
NEW_CONNECTION_ID
for integrations.router.ts
Removed `integrationsRouter` and moved logic to main router
control-plane/src/modules/integrations/router.ts
integrationsRouter
and its route definitions.router.ts
Removed `jobsRouter` and moved logic to main router
control-plane/src/modules/jobs/router.ts
jobsRouter
and its route definitions.constants.ts
Added `ILLEGAL_SERVICE_NAMES` constant for machine services
control-plane/src/modules/machines/constants.ts
ILLEGAL_SERVICE_NAMES
for machine services.router.ts
Removed `machineRouter` and moved logic to main router
control-plane/src/modules/machines/router.ts
machineRouter
and its route definitions.router.ts
Consolidated all routers into the main router file
control-plane/src/modules/router.ts
auth
,integrations
,jobs
,machines
,and
runs
.ILLEGAL_SERVICE_NAMES
andNEW_CONNECTION_ID
.router.ts
Removed `runsRouter` and moved logic to main router
control-plane/src/modules/runs/router.ts
runsRouter
and its route definitions.