Skip to content

feat(decorators): support array of paths in @DController#801

Merged
tada5hi merged 2 commits into
masterfrom
feat/decorators-multi-path-controller
May 12, 2026
Merged

feat(decorators): support array of paths in @DController#801
tada5hi merged 2 commits into
masterfrom
feat/decorators-multi-path-controller

Conversation

@tada5hi
Copy link
Copy Markdown
Contributor

@tada5hi tada5hi commented May 12, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 12, 2026 13:36
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 12, 2026

Warning

Rate limit exceeded

@tada5hi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 44 minutes and 3 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c6fd0ad1-5e8e-49f9-a70a-acff09f7746b

📥 Commits

Reviewing files that changed from the base of the PR and between bcec913 and d6b8912.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (20)
  • packages/assets/package.json
  • packages/basic/package.json
  • packages/body/package.json
  • packages/cookie/package.json
  • packages/cors/package.json
  • packages/decorators/README.md
  • packages/decorators/package.json
  • packages/decorators/src/class/module.ts
  • packages/decorators/src/mount.ts
  • packages/decorators/src/type.ts
  • packages/decorators/test/unit/multi-path.spec.ts
  • packages/docs/package.json
  • packages/docs/src/decorators/controllers.md
  • packages/i18n/package.json
  • packages/logger/package.json
  • packages/prometheus/package.json
  • packages/query/package.json
  • packages/rate-limit-redis/package.json
  • packages/rate-limit/package.json
  • packages/swagger-ui/package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/decorators-multi-path-controller

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tada5hi tada5hi merged commit a45df32 into master May 12, 2026
7 checks passed
@github-actions github-actions Bot mentioned this pull request May 12, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds multi-mount support to the decorators controller mounting logic so a single @DController() can expose the same controller under multiple base paths, and aligns the repo to routup ^5.2.0 accordingly.

Changes:

  • Extend @DController() / decorator metadata to accept string[] in addition to string.
  • Update controller mounting to mount the same controller router under each provided base path.
  • Bump routup peer/dev dependency ranges to ^5.2.0, update lockfile, and document + test the new behavior.

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/swagger-ui/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/rate-limit/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/rate-limit-redis/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/query/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/prometheus/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/logger/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/i18n/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/docs/src/decorators/controllers.md Documents @DController(string[]) multi-mount usage.
packages/docs/package.json Adds routup ^5.2.0 as a peer dependency for the docs workspace.
packages/decorators/test/unit/multi-path.spec.ts Adds unit test coverage for multi-mount controllers.
packages/decorators/src/type.ts Updates DecoratorMeta.url type to `string
packages/decorators/src/mount.ts Implements multi-path mounting via router building + per-path mount.
packages/decorators/src/class/module.ts Updates DController signature to `string
packages/decorators/README.md Notes that @DController can take string[].
packages/decorators/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/cors/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/cookie/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/body/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/basic/package.json Bumps routup peer/dev dependency to ^5.2.0.
packages/assets/package.json Bumps routup peer/dev dependency to ^5.2.0.
package-lock.json Updates routup to 5.2.0 and related transitive dependency versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants