Skip to content

Conversation

sdangol
Copy link
Contributor

@sdangol sdangol commented Sep 24, 2025

Summary

This PR adds an includeRouter method to allows merging routes, context, and middleware from one router instance into another.

Changes

Please provide a summary of what's being changed

  • Added merge methods on the Route Handler and Error Handler registries to merge error handlers and routes
  • Added includeRouter method on the Router to merge context, registries and middlewares

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #4481


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@pull-request-size pull-request-size bot added the size/L PRs between 100-499 LOC label Sep 24, 2025
@boring-cyborg boring-cyborg bot added event-handler This item relates to the Event Handler Utility tests PRs that add or change tests labels Sep 24, 2025
@sdangol sdangol self-assigned this Sep 24, 2025
Copy link
Contributor

@dreamorosi dreamorosi left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, left a couple comments and a question.

Copy link

@dreamorosi dreamorosi merged commit 38b6e82 into main Sep 25, 2025
37 checks passed
@dreamorosi dreamorosi deleted the feat/split-route branch September 25, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-handler This item relates to the Event Handler Utility size/L PRs between 100-499 LOC tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Split routes with Router - includeRouter method
3 participants